Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-10 00:19:02 +00:00
parent 9f85bd373f
commit c39b4c5f19
53 changed files with 152 additions and 86 deletions

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# pdfgrep
> Search text in PDF files.
> More information: <https://pdfgrep.org>.
> More information: <https://pdfgrep.org/doc.html>.
- Find lines that match pattern in a PDF:
@@ -14,16 +14,16 @@ source: https://github.com/tldr-pages/tldr.git
- Include file name and page number for each matched line:
`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}`
`pdfgrep {{[-H|--with-filename]}} {{[-n|--page-number]}} {{pattern}} {{file.pdf}}`
- Do a case-insensitive search for lines that begin with "foo" and return the first 3 matches:
`pdfgrep --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}`
`pdfgrep {{[-m|--max-count]}} {{3}} {{[-i|--ignore-case]}} {{'^foo'}} {{file.pdf}}`
- Find pattern in files with a `.pdf` extension in the current directory recursively:
`pdfgrep --recursive {{pattern}}`
`pdfgrep {{[-r|--recursive]}} {{pattern}}`
- Find pattern on files that match a specific glob in the current directory recursively:
`pdfgrep --recursive --include {{'*book.pdf'}} {{pattern}}`
`pdfgrep {{[-r|--recursive]}} --include {{'*book.pdf'}} {{pattern}}`