This is an old revision of the document!
sed is a text processing thingy that is very sophisticated.
sed
Here is a useful stackexhange thread that covers a lot of search and replace scenarios.