Today I Learned: collection of notes, tips and tricks and stuff I learn from day to day working with computers and technology as an open source contributor and product manager

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