sed

Delete all lines matching a pattern


::

sed -i '/pattern to match/d' ./infile

Prepend a file


::

sed -i '1i header line' ./infile