[X-Unix] Remove last ten lines of files

Kuestner, Bjoern Bjoern.Kuestner at drkw.com
Fri Jan 9 00:25:44 PST 2004


Hi David,

>It may look cryptic, but don't the other solutions look equally so?

They do. And I can just plug them in and hope they work as advertised or do
some guesswork should I need to modify them. 

I mean, there are books written about awk, perl, shell scripting etc. so to
understand each solution without explanation means digging deeper a lot into
awk etc., something that takes really long. 

In fact I (and probably not just me) would appreciate if those who posted
their solution would explain how they actually work. 

I hope that's not stretching things too far. This has not so much to do with
the original request but with understanding more.

"Any sufficiently advanced technology is indistinguishable from magic."
-- Arthur C. Clarke 

Thanks in advance.

>I'm really making the point that often simple tasks can be easily 
>done with the old simple apps like 'ed'.

Thanks for this one, too.

>Hence the name for grep when it was written.

More of this here:
http://www.faqs.org/faqs/unix-faq/faq/part1/section-3.html

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