in reply to Re: Extracting Pattern Match from log
in thread Extracting Pattern Match from log
Ladies and gentlemen, we have a new nominee for the Useless Use of Cat Award ! ;)
This would do exactly the same, yet without abusing cat:
perl -n -e 'print $1, $/ if /450 <([^>]*)>/' /var/log/mail/info
|
|---|