From owner-freebsd-questions@FreeBSD.ORG Sun Jan 11 02:03:03 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 9646816A4CE for ; Sun, 11 Jan 2004 02:03:03 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAD3C43D54 for ; Sun, 11 Jan 2004 02:03:01 -0800 (PST) (envelope-from algould@datawok.com) Received: from 22-15.lctv-b4.cablelynx.com ([24.204.22.15] helo=yoda.datawok.com) by stork.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1AfcQs-0003eG-00; Sun, 11 Jan 2004 02:02:58 -0800 From: "Andrew L. Gould" To: Jez Hancock Date: Sun, 11 Jan 2004 04:02:56 -0600 User-Agent: KMail/1.5.4 References: <200401101939.44526.algould@datawok.com> <200401110001.22135.algould@datawok.com> <20040111075511.GB58914@users.munk.nu> In-Reply-To: <20040111075511.GB58914@users.munk.nu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401110402.56239.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b5af5292a9ee7a137565611c26f994262350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: freebsd-questions@freebsd.org Subject: Re: tail tip to Fortune? 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: Sun, 11 Jan 2004 10:03:03 -0000 On Sunday 11 January 2004 01:55 am, Jez Hancock wrote: > On Sun, Jan 11, 2004 at 12:01:22AM -0600, Andrew L. Gould wrote: > > On Saturday 10 January 2004 07:39 pm, Andrew L. Gould wrote: > > > On Fri, 9 Jan 2004, Dan Nelson wrote: > > > > In the last episode (Jan 09), Dru said: > > > > > 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. > > > > > > > > tail +11 myfile > > > > > > Could we get this one into the Fortune tips that appear at user login? > > > > > > Andrew Gould > > > > Please disregard -- I figured out how to add my own fortune file. > > FWIW you can do something like this: > > fortune -m tail freebsd-tips > > to display all tips in the freebsd-tips fortune file that contain > 'tail'. > > As it turns out there is this tip: > > To see the last 10 lines of a long file, use "tail filename". To see the > first 10 lines, use "head filename". > -- Dru > > which is almost what you're asking about :P Thanks. Andrew Gould