Andrew Brennan on Tue, 5 Feb 2002 01:20:19 +0100


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

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


Do a PERL one-liner that holds a counter, at the fourth line it starts
printing all of the input passed to it.

On Sun, 3 Feb 2002, 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?
>
> Is there an easy way to do this?  To just chop off the first n lines
> from a file?  It would be nice to do this without having to count the
> number of lines in the file first.
>
> I know this kind of utility would be easy to write, but it feels like
> it should already exist...
>
>
> Thanks,
> Kyle
>
> --
>
> ------------------------------------------------------------------------------
> Wisdom and Compassion are inseparable.
>         -- Christmas Humphreys
> mortis@voicenet.com                            http://www.voicenet.com/~mortis
> ------------------------------------------------------------------------------
>
> ______________________________________________________________________
> Philadelphia Linux Users Group       -      http://www.phillylinux.org
> Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
> General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug
>
>



______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug