I am trying to delete some lines in a text file using sed
. I only want to delete lines that contains two strings. The command \|
is equivalent to the boolean OR
. What is the command for the boolean operator AND
?
I am looking for something like this:
sed '/strA'AND'strB/d' file.txt