On 2013-01-09 Adam Thompson wrote:
Command Line Magic (@climagic) tweeted at 11:58 AM on Wed, Jan 09, 2013: grep -o -P "(?<=CRON[)\d+" /var/log/syslog # GNU grep supports perl regex expressions. This gives only the PID on CRON lines in
Yup, been using it for years (of course). The POSIX syntax for stuff like \a \w and \b are clumsy, ugly and hard to type. Perl does it sooooo much better. And you even can use negative look-behinds and other fun stuff! Perl's da bomb!