Monthly Archives: January 2016

Cutting Out Digits with OS X grep

OS X has BSD grep with basic regular expressions by default, so the zero-or-more repetition operator needs escaping. Also, it has the \w shorthand for alphanumeric characters. grep -o ‘\w\+’

Posted in Uncategorized | Leave a comment