Magical sed programs