[X-Unix] Remove last ten lines of files

Kuestner, Bjoern Bjoern.Kuestner at drkw.com
Tue Jan 6 23:48:30 PST 2004


> echo '1,$-10p;q' | tr ";" "\n" | ed YOURFILE

The mystery deepens. (c:

I kinda feel like my wife right now when she looks at my screen and thinks I
am doing total magic.

> Chair of HPUX SysAdmin SIG of hpUG technical user group

How comforting in this respect.

Thanks,

Björn


--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express 
written permission of the sender. If you are not the intended recipient, please 
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to 
http://www.drkw.com/disc/email/ or contact the sender.
--------------------------------------------------------------------------------



More information about the X-Unix mailing list