I'm using grep command in bash to find multiple keywords/patterns which did not find a match
For example below command returns the keywords/patterns that matched
grep -oehE '(cat|dog|apple|mango|bat)' temp.txt | sort | uniq
But I'm looking for a command which can do following:
temp.txt contains
This is a dog the best
Dog are the best
doG
dog
My best buddy is dog
Love mango and candy
The output of search I'm looking for is
cat
apple
bat
The output is the patterns that did not match the data in the file.
I searched for a similar problem and the closest I could find was below post but it deals with the files rather than all on the command line
Any help is appreciated.