You mean 'tail +N' vs. 'tail -N' ?

-Aaron

On Sep 24, 2004, at 10:17 AM, Jose Alves de Castro wrote:

You're probably all familiar with the commands "head" and "tail", which
 let you extract the first or the last N lines of input or a file...

Imagine you want to print a file, but without the first N lines...

For N=1, one possibility would be:

print if $. - 1;

For any N, maybe this:

print if ($N+1)..0;

Any thoughts? Any other ideas? What would be the best way to do this?


Regards,

jac

--
José Alves de Castro <[EMAIL PROTECTED]>
  http://natura.di.uminho.pt/~jac


--
Aaron J. Mackey, Ph.D.
Dept. of Biology, Goddard 212
University of Pennsylvania       email:  [EMAIL PROTECTED]
415 S. University Avenue         office: 215-898-1205
Philadelphia, PA  19104-6017     fax:    215-746-6697



Reply via email to