mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
ack: add regex, single file search examples (#4007)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>
This commit is contained in:
parent
3741c79599
commit
038ea380fc
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,14 @@
|
|||
|
||||
`ack -cl {{foo}}`
|
||||
|
||||
- Search a file for a specified string:
|
||||
|
||||
`ack bar "{{foo bar}}" {{path/to/file}}`
|
||||
|
||||
- Search a file for the specified regex pattern:
|
||||
|
||||
`ack bar "{{[bB]ar \d+}}" {{path/to/file}}`
|
||||
|
||||
- List all valid types:
|
||||
|
||||
`ack --help=types`
|
||||
|
|
Loading…
Add table
Reference in a new issue