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