head and tail

2008-02-25 Thread Jeremy Stephens
I found myself needing to run awk on all the lines of a text file except the first one. So I look at some man pages. It turns out that head will accept negative numbers, but tail won't. At least in my Ubuntu Gutsy installation it won't. Boo. -- Jeremy Stephens Computer Systems Analyst I

Re: head and tail

2008-02-25 Thread Peter da Silva
On 2008-02-25, at 13:22, Jeremy Stephens wrote: I found myself needing to run awk on all the lines of a text file except the first one. I kind of have a teenie bit of software hate for things like foo | awk ... instead of awk 'foo-equiv /whatever/' ..., but that's mostly leftover hate

Re: head and tail

2008-02-25 Thread Philip Newton
On Mon, Feb 25, 2008 at 9:36 PM, Peter da Silva pe...@taronga.com wrote: I kind of have a teenie bit of software hate for things like foo | awk ... instead of awk 'foo-equiv /whatever/' ..., Ah yes, like bla | grep blabla | awk 'print $NF' instead of bla | awk '/blabla/ { print $NF }, for

Re: head and tail

2008-02-25 Thread David Cantrell
On Mon, Feb 25, 2008 at 09:38:47PM +0100, Philip Newton wrote: On Mon, Feb 25, 2008 at 9:36 PM, Peter da Silva pe...@taronga.com wrote: I kind of have a teenie bit of software hate for things like foo | awk ... instead of awk 'foo-equiv /whatever/' ..., Ah yes, like bla | grep blabla |

Re: head and tail

2008-02-25 Thread Bruce Richardson
On Mon, Feb 25, 2008 at 02:36:30PM -0600, Peter da Silva wrote: On 2008-02-25, at 13:22, Jeremy Stephens wrote: I found myself needing to run awk on all the lines of a text file except the first one. I kind of have a teenie bit of software hate for things like foo | awk ... instead of

Re: head and tail

2008-02-25 Thread Walt Mankowski
On Mon, Feb 25, 2008 at 02:36:30PM -0600, Peter da Silva wrote: On 2008-02-25, at 13:22, Jeremy Stephens wrote: I found myself needing to run awk on all the lines of a text file except the first one. I kind of have a teenie bit of software hate for things like foo | awk ... instead of awk

Re: head and tail

2008-02-25 Thread Andy Dougherty
On Mon, 25 Feb 2008, Jeremy Stephens wrote: I found myself needing to run awk on all the lines of a text file except the first one. So I look at some man pages. It turns out that head will accept negative numbers, but tail won't. At least in my Ubuntu Gutsy installation it won't. I've

unrar is hateful

2008-02-25 Thread Timothy Knox
Okay, for those of you for whom the above is not sufficient, let me elaborate: I use the following idiom to expand archives of various sorts: $ unzip archive.zip rm archive.zip $ gunzip archive.gz rm archive.gz $ bunzip2 archive.bz2 rm archive.bz2 So good, so far. However, unrar, in its