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
Cameron Tod 2020-05-11 20:57:08 +12:00 committed by Starbeamrainbowlabs
parent 3741c79599
commit 038ea380fc
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
1 changed files with 8 additions and 0 deletions

View File

@ -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`