I have a text file, let say
test1.txt, I need to remove the line containing dog and date with
Using the below command to accomplish it but it is not deleting the lines.
Where as if i mention just with
/DOG/d it is deleting the lines containing
command file (sedcommands)
DOG 29-APR-2015 DOG 29-APR-2015 DOG 30-APR-2015 CAT 29-APR-2015 CAT 29-APR-2015
sed -f sedcommands test1.txt > test2.txt