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
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
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
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 |
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
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
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
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