ag
The Silver Searcher. Like ack, but aims to be faster.
- Find files containing "foo", and print the line matches in context:
- Find files containing "foo" in a specific directory:
- Find files containing "foo", but only list the filenames:
- Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line:
- Find "foo" in files with a name matching "bar":
- Find files whose contents match a regular expression:
- Find files with a name matching "foo":
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).