How do you delete all lines in a file that begin with \"string\" in sh? I was thinking about using the sed command.
To do it in place, if your sed supports the -i option, you can do:
sed -i '/^string/d' input-file