This thrillingly exciting unix tool also has a great page about it, Sed - An Introduction and Tutorial . It starts with "The Awful Truth about sed" which is simple ... "the documentation is terrible".