From owner-freebsd-questions@FreeBSD.ORG Fri Jan 9 16:12:33 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 A889116A4CE; Fri, 9 Jan 2004 16:12:33 -0800 (PST) Received: from lilzmailso02.liwest.at (lilzmailso02.liwest.at [212.33.55.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id D13DA43D2D; Fri, 9 Jan 2004 16:12:31 -0800 (PST) (envelope-from dgw@liwest.at) Received: from cm58-27.liwest.at ([212.33.58.27]) by lilzmailso02.liwest.at with esmtp (Exim 4.24) id 1Af6js-0001C0-8H; Sat, 10 Jan 2004 01:12:28 +0100 From: Daniela To: Ernst de Haan , Dru , questions@freebsd.org Date: Sat, 10 Jan 2004 01:08:33 +0000 User-Agent: KMail/1.5.3 References: <20040109110400.G610@genisis.domain.org> <200401091721.31104.znerd@FreeBSD.org> In-Reply-To: <200401091721.31104.znerd@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401100108.33553.dgw@liwest.at> 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: Sat, 10 Jan 2004 00:12:33 -0000 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