Search pdf files for a word. Find a string in multiple pdf files on Linux.
Posted by rolf on Thursday, 2 April 2015
On Linux if you want to find a word in multiple pdf files open the terminal (Ctrl+T), cd to the path where the pdf files are located
cd /path/to/pdf/files
and use the pdfgrep command to find a certain string in all pdf files
pdfgrep -in 'searchThisString' *.pdf
i=case insensitive, n=show line number in pdf.
Or if you just want to look through one pdf file
pdfgrep -in 'searchThisString' NameOfFile.pdf
If pdfgrep is not installed you can install it on Ubuntu, using following command
sudo apt-get install pdfgrep
Add new comment