ag Command Examples

The Silver Searcher. Like ack, but aims to be faster. More information: https://manned.org/ag.

ag {{foo}}

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

ag {{[-l|--files-with-matches]}} {{foo}}

ag {{[-i|--ignore-case]}} {{[-o|--only-matching]}} {{FOO}}

ag {{foo}} {{[-G|--file-search-regex]}} {{bar}}

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

ag {{[-g|--filename-pattern]}} {{foo}}