How would I use sed to delete all lines in a text file that contain a specific string?
The easy way to do it, with GNU sed:
sed
sed --in-place '/some string here/d' yourfile