Instantly share code, notes, and snippets.
Delete all lines in the file myfile that contain the string foobar:
myfile
foobar
sed -i '/foobar/d' myfile