Quantcast
Channel: How to find files that don't contain a given search string - Server Fault
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

How 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
Browsing latest articles
Browse All 3 View Live




Latest Images