in reply to Re: delete a line by a string
in thread delete a line by a string

Yay, my first "Useless use of cat" award! This works just as well:

grep -v "my strange string" mydata > my_new_data