1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

Add ag (the_silver_searcher) page

This commit is contained in:
Robert Speicher 2014-05-01 21:23:01 -04:00
parent 0a0450f5ba
commit 44acd72914

19
pages/common/ag.md Normal file
View file

@ -0,0 +1,19 @@
# 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`