1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-01 23:17:56 +01:00
tldr/pages/common/ag.md
Lin Dong 6249958bc6 Update ag
1. Add case-insensitive search example
2016-02-18 09:58:34 -08:00

355 B

ag

The Silver Searcher. Like ack, but faster.

  • Find files containing "foo":

ag foo

  • Find files containing "FOO" case-insensitively:

ag -i 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