Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Basic Command-Line Data Processing in Linux. Parent comment
Try putting a couple of spaces in front of your code line, like this:
cat file | perl -p -e "s/.*from ([0-9\.]+).*/\1/g"
Edit: for simple regexes, sed works well, too, and probably loads slightly faster than perl.
There are no comments on this comment yet.
Try putting a couple of spaces in front of your code line, like this:
See http://news.ycombinator.com/formatdocEdit: for simple regexes, sed works well, too, and probably loads slightly faster than perl.