How do you delete all lines in a file that begin with "string" in sh? I was thinking about using the sed command.
grep -v '^string' yourfile.txt > stripped.txt
2.1m questions
2.1m answers
60 comments
57.0k users