
Making the AWKward Not So
This weekend I was planning to write a follow-up to my Intro to grep tutorial, but I decided to put that off for a bit. One of my friends asked me about extracting a subset of information from each line of a text file. Basically, he wanted the URL’s of all the RSS feeds in his OPML file. Because grep returns whole lines, it isn’t equipped to the task. However, Linux comes with two popular stream editors: awk and sed. Today, I’m going to give you a proof-by-example of awk.
(more…)

