mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-15 04:50:40 +03:00
20 lines
288 B
Markdown
20 lines
288 B
Markdown
|
# ag
|
||
|
|
||
|
> The Silver Searcher. Like ack, but faster.
|
||
|
|
||
|
- Find files containing "foo"
|
||
|
|
||
|
`ag foo`
|
||
|
|
||
|
- Find "foo" in files with a name matching "bar"
|
||
|
|
||
|
`ag foo -G bar`
|
||
|
|
||
|
- Find files whose contents match a regular expression:
|
||
|
|
||
|
`ag '^ba(r|z)$'`
|
||
|
|
||
|
- Find files with a name matching "foo"
|
||
|
|
||
|
`ag -g foo`
|