mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-05 17:15:42 +02:00
Update pdfgrep.md
This commit is contained in:
parent
512bd35b61
commit
da10a8fa0d
1 changed files with 3 additions and 3 deletions
|
@ -10,14 +10,14 @@
|
||||||
|
|
||||||
`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}`
|
`pdfgrep --with-filename --page-number {{pattern}} {{file.pdf}}`
|
||||||
|
|
||||||
- Find the first 3 lines that begin with foo case insensitive:
|
- 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 --max-count {{3}} --ignore-case {{'^foo'}} {{file.pdf}}`
|
||||||
|
|
||||||
- Find pattern in files with a .pdf extension in the current directory recusively:
|
- Find pattern in files with a .pdf extension in the current directory recursively:
|
||||||
|
|
||||||
`pdfgrep --recursive {{pattern}}`
|
`pdfgrep --recursive {{pattern}}`
|
||||||
|
|
||||||
- Find pattern recursively on files that match a specific glob:
|
- Find pattern on files that match a specific glob in the current directory recursively:
|
||||||
|
|
||||||
`pdfgrep --recursive --include {{'*book.pdf'}} {{pattern}}`
|
`pdfgrep --recursive --include {{'*book.pdf'}} {{pattern}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue