From owner-freebsd-questions@FreeBSD.ORG Fri Jan 9 08:20:53 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D08416A4CE for ; Fri, 9 Jan 2004 08:20:53 -0800 (PST) Received: from smtp5.wanadoo.nl (smtp5.wanadoo.nl [194.134.35.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08FFC43D68 for ; Fri, 9 Jan 2004 08:20:49 -0800 (PST) (envelope-from znerd@FreeBSD.org) Received: from 10.0.0.153 (db-c-1b11d.adsl.wanadoo.nl [81.69.207.29]) by smtp5.wanadoo.nl (Postfix) with ESMTP id D150277DF3; Fri, 9 Jan 2004 17:20:46 +0100 (CET) From: Ernst de Haan To: Dru , questions@freebsd.org Date: Fri, 9 Jan 2004 17:21:30 +0000 User-Agent: KMail/1.5.4 References: <20040109110400.G610@genisis.domain.org> In-Reply-To: <20040109110400.G610@genisis.domain.org> X-Address: Muiderstraat 1, Amsterdam, Netherlands MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401091721.31104.znerd@FreeBSD.org> Subject: Re: removing the first 10 lines of a file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2004 16:20:53 -0000 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 :-) Ernst On Friday 09 January 2004 16:07, Dru wrote: > I remember coming across a trick (which I can't find now) which allowed > you to page all of a file, except for the first 10 lines. I think it used > a combo of head and tail to achieve this. I can't just use tail as the > length of the file varies whereas the amount I don't want to see doesn't. > > Anyone know of a quick way to do this? > > Dru > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"