tail -n +6 Valery
--- On Tue, 12/23/08, Tzafrir Cohen <tzaf...@cohens.org.il> wrote: > From: Tzafrir Cohen <tzaf...@cohens.org.il> > Subject: Re: un-head > To: "linux-il" <linux-il@cs.huji.ac.il> > Date: Tuesday, December 23, 2008, 10:03 AM > On Tue, Dec 23, 2008 at 09:53:00AM +0200, Erez D wrote: > > hi > > > > head -5 <file> will give me the first 5 lines of > file. > > > > i'm looking for somthing that will give me > everything but the first 5 lines. > > > > i know i can get the lines with 'wc -l' , then > substract 5, and then use > > tail. > > is there an unhead util that does that for me ? > > sed 1,5d > > Or a more general beheader: > > #!/bin/sh > cnt=$1 > shift > exec sed 1,${cnt}d "$@" > > -- > Tzafrir Cohen | tzaf...@jabber.org | VIM is > http://tzafrir.org.il | | a Mutt's > tzaf...@cohens.org.il | | best > ICQ# 16849754 | | friend > > ================================================================= > To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il > with > the word "unsubscribe" in the message body, e.g., > run the command > echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il ================================================================= To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il