Search pdf files for a word. Find a string in multiple pdf files on Linux.

pdfgrep

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

 

blog_tags: 

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <img> <br> <p> <span>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Use [collapse] and [/collapse] to create collapsible text blocks. [collapse collapsed] or [collapsed] will start with the block closed.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
  • Code snippets in <code>...</code> or <source>...</source> automatically will be pretty printed.
  • Use [collapse] and [/collapse] to create collapsible text blocks. [collapse collapsed] or [collapsed] will start with the block closed.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Target Image