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:
@@ -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`
|
||||||
|
Reference in New Issue
Block a user