I have a file that contains information as so:
20 BaDDOg 31 baddog 42 badCAT 43 goodDoG 44 GOODcAT
and I want to delete all lines that contain the word
dog. This is my desired output:
42 badCAT 44 GOODcAT
However, the case of
dog is insensitive.
I thought I could use a sed command:
sed -e "/dog/id" file.txt , but I can't seem to get this to work. Does it have something to do with me working on an OSX? Is there any other method I could use?