Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as a developer

View project on GitHub

Chaining actions

You can chain several actions using -e

This example removes comments first and then empty lines

$ sed -e 's/#.*$//' -e '/^$/d' somefile