User Tools

Site Tools


sed

Delete a matching line

sed '/pattern/d' filename > newfile

Or edit in place (GNU)

sed -i '/pattern/d' filename
sed.txt · Last modified: 2016/05/14 11:04 (external edit)