Walt Mankowski on Sun, 3 Feb 2002 22:00:27 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] not head, not tail, but what?


On Sun, Feb 03, 2002 at 03:13:57PM -0500, Kyle R . Burton wrote:
> Is there a standard utility out there that can print out all the lines
> from a file except the first n?
> 
> Head can get you the first n, tail can get you the last n.  Is there
> something that can get you m-n?

"tail -n" prints the last n lines of a file.  "tail +n" prints all the
lines in the file starting with line n.

Walt

Attachment: pgpqdl1ssd6GK.pgp
Description: PGP signature