mirror of https://github.com/CrimsonTome/tldr.git
ack: add regex, single file search examples (#4007)
Co-authored-by: Zlatan Vasović <zlatanvasovic@gmail.com> Co-authored-by: Starbeamrainbowlabs <sbrl@starbeamrainbowlabs.com>client-spec/clarity
parent
3741c79599
commit
038ea380fc
|
@ -19,6 +19,14 @@
|
||||||
|
|
||||||
`ack -cl {{foo}}`
|
`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:
|
- List all valid types:
|
||||||
|
|
||||||
`ack --help=types`
|
`ack --help=types`
|
||||||
|
|
Loading…
Reference in New Issue