How could I search the contents of PDF files in a directory/subdirectory? I am looking for some command line tools. It seems that grep
can't search PDF files.
Linux – How to search contents of multiple pdf files
debianfull-text-searchgreplinuxpdf
Related Topic
- Linux – Shell command to tar directory excluding certain files/folders
- Can grep show only words that match search pattern
- Linux – Merge / convert multiple PDF files into one PDF
- Linux – How to change permissions for a folder and its subfolders/files in one step
- Linux – How to exclude a directory in find . command
- Linux – How to find all files containing specific text on Linux
Best Answer
There is pdfgrep, which does exactly what its name suggests.
I've used it for simple searches and it worked fine.
(There are packages in Debian, Ubuntu and Fedora.)
Since version 1.3.0 pdfgrep supports recursive search. This version is available in Ubuntu since Ubuntu 12.10 (Quantal).