CmdID

CmdID / Commands

pdfgrep

Search text in PDF files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Find lines that match pattern in a PDF

pdfgrep pattern file.pdfIdentify

Include file name and page number for each matched line

pdfgrep --with-filename --page-number pattern file.pdfIdentify

Do a case-insensitive search for lines that begin with file_name and return the first 3 matches

pdfgrep --max-count 3 --ignore-case '^file_name' file.pdfIdentify

Find pattern in files with a .pdf extension in the current directory recursively

pdfgrep --recursive patternIdentify

Find pattern on files that match a specific glob in the current directory recursively

pdfgrep --recursive --include '*book.pdf' patternIdentify