From eriwen.com:
Today I'll continue the series on command-line tools for productivity, with sed. Stream EDitor is the most complicated tool so far, an entire language in its own right. It is much too big to cover completely in one post, so I'm going to have a few posts covering the major parts of sed. The bread and butter of sed is its search-and-replace functionality.