Admin Books

DOWNLOAD Free e-Books for Linux Admin Servers :

Bash search text within pdf


Search within pdf

to search for strings in multiple pdf files you can use pdftotext like this:
for i in *.pdf; do pdftotext "$i" - | grep string-to-find; done
This needs some fine tuning to print filenames or to recurse into subfolders or whatever you want ...

No comments:

Post a Comment