1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-08 04:34:01 +02:00

Merge pull request #865 from tldr-pages/ag-l-o

ag: add -l and -o options
This commit is contained in:
Felix Yan 2016-05-04 09:38:16 -05:00
commit b61acdf8a0

View file

@ -2,13 +2,17 @@
> The Silver Searcher. Like ack, but faster.
- Find files containing "foo":
- Find files containing "foo", and print the line matches in context:
`ag foo`
- Find files containing "FOO" case-insensitively:
- Find files containing "foo", but only list the filenames:
`ag -i FOO`
`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":