[ale] Question about awk
Geoffrey
lists at serioustechnology.com
Thu Sep 17 16:42:15 EDT 2009
Chuck Payne wrote:
> If I do .....
>
> awk -F '[\\[\\]]' '/Recipient address rejected/ {print $10}' mail
>
> You can tell that it looking, because you can see a whole bunch of
> blank lines go by.
Make sure you are identifying the right field. Is it field 10 that you
want?
[foo] [bar]
Field 1 is the null field before the first '['
Field 2 is 'foo'
Field 3 is the space between 'foo]' and ']bar'
Field 4 is 'bar'
--
Until later, Geoffrey
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety.
- Benjamin Franklin
More information about the Ale
mailing list