Charles Gregory wrote: > On Thu, 28 Jan 2010, LuKreme wrote: >> $ bzgrep dynamic.hinet.net /var/log/maillog.?.bz2 |\ >>> grep -i reject |\ >>> awk -F: {'print $9'} |\ >>> awk -F';' {'print $1'} |\ >>> sort -u >> Client host rejected >> Helo command rejected >> Recipient address rejected >> Relay access denied >> Sender address rejected >> >> The usual array of spammer errors. > ***** Strictly for fun. Cuz I'm a geek and can't resist...... > > The code you post could not produce the output shown. > There is no 'reject' in the line 'Relay access denied'. (big wide grin) > > No argument about the intended *point* of the output. :)
Take another look. The original line must contain 'reject', but the output is not the entire line. -- Bowie