[ale] Question about awk

Ed Cashin ecashin at noserose.net
Thu Sep 17 11:28:19 EDT 2009


On Thu, Sep 17, 2009 at 10:34 AM, Chuck Payne <terrorpup at gmail.com> wrote:
...
>> Got the information I want, do I use the string like this?
>>
>> awk -F '[\\[\\]]' '/Recipient address rejected/ {print $10}' mail.log
...
> 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.

You'll probably have to change from the tenth field to the second or
something, since you've changed how you're splitting fields with the
"-F" option.

-- 
  Ed Cashin <ecashin at noserose.net>
  http://noserose.net/e/


More information about the Ale mailing list