Chaining actions
You can chain several actions using -e
This example removes comments first and then empty lines
$ sed -e 's/#.*$//' -e '/^$/d' somefile
You can chain several actions using -e
This example removes comments first and then empty lines
$ sed -e 's/#.*$//' -e '/^$/d' somefile