Date: Sun, 11 Jan 2004 07:55:11 +0000 From: Jez Hancock <jez.hancock@munk.nu> To: "Andrew L. Gould" <algould@datawok.com> Cc: freebsd-questions@freebsd.org Subject: Re: tail tip to Fortune? Message-ID: <20040111075511.GB58914@users.munk.nu> In-Reply-To: <200401110001.22135.algould@datawok.com> References: <200401101939.44526.algould@datawok.com> <200401110001.22135.algould@datawok.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <genesis@istar.ca> which is almost what you're asking about :P -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - personal weblog http://ipfwstats.sf.net/ - ipfw peruser traffic logging
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040111075511.GB58914>