Check out this text document of sed one liners, i’m mirroring it on this website. (thanks for alex levinson for sitting on my couch… where all sed wizardry happens).

http://www.daveeddy.com/sed1line.txt