ag Command Examples

The Silver Searcher. Like ack, but aims to be faster. More information: https://github.com/ggreer/the_silver_searcher.

ag {{foo}}

ag {{foo}} {{path/to/directory}}

ag -l {{foo}}

ag -i -o {{FOO}}

ag {{foo}} -G {{bar}}

ag '{{^ba(r|z)$}}'

ag -g {{foo}}