(note that it's not safe to output to the same file you're inputting from)cat mydata | grep -v "my strange string" > my_new_data
In reply to Re: delete a line by a string
by Improv
in thread delete a line by a string
by moked
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |