search for pdf code example Example: search in pdfs find /path -iname '*.pdf' -exec pdfgrep pattern {} +