Perl > Python && Perl > PowerShell

Ok, I have decided good ol’ Perl is better than both the new kids for a particular kind of task: quick-n-dirty text manipulation. Sorry, y’all, I’m going back, after all these years.

cat edWebLog.txt | perl -n -e '/caching service background update finished on thread \(id [0-9]+\) in ([0-9]+) ms/ && print "$1\n";'

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.