Answer by cjc for How to find files that don't contain a given search string
You want to use the "-L" option of grep: -L, --files-without-match Only the names of files not containing selected lines are written to standard output. Path- names are listed once per file searched....
View ArticleAnswer by Slinky for How to find files that don't contain a given search string
Just add the "L" flag. This does the inversefind /Users/me/PDFFiles/ -type f -name "*.pdf" -exec grep -HL 'Font''{}'';'
View ArticleHow to find files that don't contain a given search string
I have a command that finds all the PDF files that contain the string "Font"find /Users/me/PDFFiles/ -type f -name "*.pdf" -exec grep -H 'Font''{}'';'How can I change this command such that it does the...
View Article
More Pages to Explore .....