Quantcast
Channel: How to find files that don't contain a given search string - Server Fault
Viewing all articles
Browse latest Browse all 3

How to find files that don't contain a given search string

$
0
0

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 inverse? Finds all PDF files that do not contain the search string "Font"


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images