mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 14:22:07 +02:00
ag: add -l and -o options
This commit is contained in:
parent
49c7b1b342
commit
4517f2e411
1 changed files with 7 additions and 3 deletions
|
@ -2,13 +2,17 @@
|
||||||
|
|
||||||
> The Silver Searcher. Like ack, but faster.
|
> The Silver Searcher. Like ack, but faster.
|
||||||
|
|
||||||
- Find files containing "foo":
|
- Find files containing "foo", and print the line matches in context:
|
||||||
|
|
||||||
`ag foo`
|
`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":
|
- Find "foo" in files with a name matching "bar":
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue