我有一个命令,可以找到包含字符串“Font”的所有PDF文件
find /Users/me/PDFFiles/ -type f -name "*.pdf" -exec grep -H 'Font' '{}' ';'
解决方法
你想使用grep的“-L”选项:
-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. If the standard input is searched,the string ``(standard input)'' is written.