1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/ag.md
Sebastiaan Speck dc73a80540
pages.nl/common/a*: update Dutch translation, fix English typo's (#16245)
* pages.nl/common/a*: update Dutch translation, fix English typo's

* Update pages/common/asciinema.md

* Update act.md

* Update pages.nl/common/act.md

* Update age-keygen.md

Co-authored-by: Leon <leonvsc@users.noreply.github.com>

* pages.nl/common/b*: update Dutch translation (#16248)

* pages.nl/common/b*: update Dutch translation

* Update pages.nl/common/bc.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

---------

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

* certbot: update Dutch translation

* Update certbot.md

* Fix typos

---------

Co-authored-by: Leon <leonvsc@users.noreply.github.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
2025-04-25 18:51:41 +02:00

795 B

ag

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

  • Find files containing "foo", and print the line matches in context:

ag foo

  • Find files containing "foo" in a specific directory:

ag foo {{path/to/directory}}

  • Find files containing "foo", but only list the filenames:

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

  • Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line:

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

  • Find "foo" in files with a name matching "bar":

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

  • Find files whose contents match a regular expression:

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

  • Find files with a name matching "foo":

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