Found this gem when trolling /r/Programming, it’s an IBM’s DeveloperWorks article on text manipulation in Unix. Always fun stuff.
It’s written by Brad Yoes and here is the link.
Also where is why I love DeveloperWorks articles, links to other content. Here is what you can find you fall down the rabbit hole.