2014-10-02 02:02:25 +04:00
|
|
|
# ack
|
|
|
|
|
|
|
|
> A search tool like grep, optimized for programmers.
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Find files containing "foo":
|
2014-10-02 02:02:25 +04:00
|
|
|
|
|
|
|
`ack {{foo}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Find files in a specific language:
|
2014-10-02 02:02:25 +04:00
|
|
|
|
|
|
|
`ack --ruby {{each_with_object}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Count the total number of matches for the term "foo":
|
2014-10-02 02:02:25 +04:00
|
|
|
|
|
|
|
`ack -ch {{foo}}`
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
- Show the file names containing "foo" and number of matches in each file:
|
2014-10-02 02:02:25 +04:00
|
|
|
|
2015-10-28 11:33:06 +03:00
|
|
|
`ack -cl {{foo}}`
|