User Tools

Site Tools


sed

This is an old revision of the document!


Delete a matching line

sed '/pattern/d' filename > newfile

Or edit in place (GNU)

sed -i '/pattern/d' filename
sed.1360353323.txt.gz · Last modified: 2023/08/18 18:15 (external edit)