in reply to delete a line by a string

This shall work: grep -v "string to delete" file > newfile newfile should now contain all lines except the ones with the "string to delete".