* Suppress Console Output
 command &> /dev/null
* Remove Blank Lines From Fileblank lines from file
 sed -i '/^$/d' filename
* Delete lines in file
 sed '/pattern/d' file
* Add lines before pattern
<pre>sed -i '/pattern/i \
line1 \
line2' file</pre>
* Add lines after pattern
<pre>sed -i '/pattern/a \
line1 \
line2' file</pre>
* Insert line based on text1 (Previous Line)
 sed -i '/text1/ i\text2' /filename;