1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.fr/common/ag.md
Reinhart Previano Koentjoro d6d4561c17
pages*: fix documentation mistakes (#11641)
* a2ping: minor fixes

* ab: fix mnemonics

* ab: fix mnemonics

* ab: fix mnemonics

* abduco: add mnemonics

* accelerate: use Hugging Face as a trademark

* ack: highlight grep as a command

* acme.sh: highlight certbot as command

* act: add mnemonics

* ag: highlight ack as command

* age-keygen: add Oxford comma

* linux/shutdown: add mnemonics

* airdecap-ng: use Oxford comma

* alex: use standard path name template
2023-12-03 19:59:57 +07:00

32 lines
925 B
Markdown

# ag
> The Silver Searcher. Comme `ack`, mais inspire à être plus rapide.
> Plus d'informations : <https://github.com/ggreer/the_silver_searcher>.
- Trouve les fichiers qui contiennent "foo", et affiche les lignes correspondantes dans le contexte courant :
`ag {{foo}}`
- Trouve les fichiers qui contiennent "foo" dans un dossier spécifique :
`ag {{foo}} {{chelin/vers/dossier}}`
- Trouve les fichiers qui contiennent "foo", mais affiche les nom de fichier uniquement :
`ag -l {{foo}}`
- Trouve les fichiers qui contiennent "FOO" en étant insensible à la casse et affiche que le premier résultat plutôt que la ligne entière :
`ag -i -o {{FOO}}`
- Trouve "foo" dans les fichiers avec un nom contenant "bar" :
`ag {{foo}} -G {{bar}}`
- Trouve des fichiers dont le contenu correspond à une expression régulière :
`ag '{{^ba(r|z)$}}'`
- Trouve les fichiers avec un nom contenant "foo" :
`ag -g {{foo}}`