Date: Sat, 10 Jan 2004 01:08:33 +0000 From: Daniela <dgw@liwest.at> To: Ernst de Haan <znerd@FreeBSD.org>, Dru <dlavigne6@sympatico.ca>, questions@freebsd.org Subject: Re: removing the first 10 lines of a file Message-ID: <200401100108.33553.dgw@liwest.at> In-Reply-To: <200401091721.31104.znerd@FreeBSD.org> References: <20040109110400.G610@genisis.domain.org> <200401091721.31104.znerd@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 09 January 2004 17:21, Ernst de Haan wrote: > You could do something like this: > > tail -n `echo \`wc -l in\` | awk '{print $1 " - 10" }' | bc` in > out > > where 'in' is the name of the input file and 'out' the name of the > generated file... but I'm sure there's probably a nicer and shorter way :-) tail -n +10 file
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401100108.33553.dgw>