I have over 100 shell files in a directory and some of them do not have mandatory keyword in code like "Author" in there.
How do I find file names where specific keyword is not existing in any of the scripts in folder?
Example given below was used to find filenames when Keyword existed. Any way to fix this one so I get filename wherever keyword does not exist?
Thanks.
GSGB
How do I find file names where specific keyword is not existing in any of the scripts in folder?
Example given below was used to find filenames when Keyword existed. Any way to fix this one so I get filename wherever keyword does not exist?
Code:
find . -name "*.sh" -exec grep -e "Author" {} /dev/null \;
Thanks.
GSGB