[RndTbl] Grep supports Perl regexp! Who knew?

Adam Thompson athompso at athompso.net
Wed Jan 9 12:01:22 CST 2013


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 syslog.
(https://twitter.com/climagic/status/289068621362241537)

_Adam



More information about the Roundtable mailing list