mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-10 11:29:59 +03:00
ac4094e0ad
This commit changes the term "folder" to "directory" in every instance where the first is used in an example description, but the second is used in the example code, and vice versa.
645 B
645 B
ag
The Silver Searcher. Like ack, but faster.
- 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 {{foo}}
- Find files containing "FOO" case-insensitively, and print only the match, rather than the whole line:
ag -i -o {{FOO}}
- Find "foo" in files with a name matching "bar":
ag {{foo}} -G {{bar}}
- Find files whose contents match a regular expression:
ag '{{^ba(r|z)$}}'
- Find files with a name matching "foo":
ag -g {{foo}}