I have a text file, let say test1.txt, I need to remove the line containing dog and date with 29-APR-2015Using 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 DOG.Could you please help me around with.command file (sedcommands)/DOG,29-APR-2015/dtest1.txtDOG          29-APR-2015          DOG          29-APR-2015          DOG          30-APR-2015          CAT          29-APR-2015          CAT          29-APR-2015          commandsed -f sedcommands test1.txt > test2.txt
sed to delete lines using multiple search string
sed
With GNU sed:sed '/DOG/{/29-APR-2015/d}' test1This method allows for any order. ie. DOG can either be before or after the date.  