mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
commit
e366c9db1e
1 changed files with 19 additions and 0 deletions
19
pages/common/ack.md
Normal file
19
pages/common/ack.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# 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}}`
|
Loading…
Add table
Reference in a new issue