mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 01:18:00 +01:00
19 lines
352 B
Markdown
19 lines
352 B
Markdown
# ack
|
|
|
|
> A search tool like grep, optimized for programmers.
|
|
|
|
- Find files containing "foo":
|
|
|
|
`ack {{foo}}`
|
|
|
|
- Find files in a specific language:
|
|
|
|
`ack --ruby {{each_with_object}}`
|
|
|
|
- Count the total number of matches for the term "foo":
|
|
|
|
`ack -ch {{foo}}`
|
|
|
|
- Show the file names containing "foo" and number of matches in each file:
|
|
|
|
`ack -cl {{foo}}`
|