mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 11:02:08 +02:00

* 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
879 B
879 B
ag
The Silver Searcher. Como
ack
, pero apunta a ser más rápido. Más información: https://github.com/ggreer/the_silver_searcher.
- Encuentra archivos que contengan "foo", e imprime las líneas coincidentes en su contexto:
ag {{foo}}
- Busca archivos que contengan "foo" en un directorio específico:
ag {{foo}} {{ruta/al/directorio}}
- Busca archivos que contengan "foo", pero sólo se alistan los nombres de los archivos:
ag -l {{foo}}
- Busca archivos que contengan "FOO" sin distinguir entre mayúsculas y minúsculas, e imprime sólo la coincidencia, en lugar de toda la línea:
ag -i -o {{FOO}}
- Busca "foo" en archivos cuyo nombre coincide con "bar":
ag {{foo}} -G {{bar}}
- Busca archivos cuyo contenido coincide con una expresión regular:
ag '{{^ba(r|z)$}}'
- Busca archivos con un nombre que coincida con "foo":
ag -g {{foo}}