Displaying only data matching a pattern?
Alan Johnson
alan at datdec.com
Mon Feb 2 11:55:02 EST 2009
On Mon, Feb 2, 2009 at 11:45 AM, Ben Scott <dragonhawk at gmail.com> wrote:
> There might be a way to do this with awk, but my knowledge of awk is
> mostly limited to using it to print columns. :)
>
Me too! (like some brain-dead AOLer)
All I have ever used awk for is picking out a column that is white-space
delimited, but it is annoying for any other delimiter. cut is great for
single-character delimiters, but is annoying for white space. I fall back
to regex for multiple-character delimiters.
People keep telling me that awk is good for other things, then start showing
me some Klingon syntaxt and I just knod and smile with the understand that
we disagree on the definition of "good". =) To be fair, even awk '{print
$5}' is a bear to get right until you type it 50 times. I used to aways
switch the positioning of the ' and the {. Oh well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20090202/69507b62/attachment.html
More information about the gnhlug-discuss
mailing list