1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 17:04:57 +02:00
tldr/pages/common/ack.md
Agniva De Sarker 6cbf29d3fc ack: made some changes
- Changed description of file type
- Added command to list all types
2019-03-07 14:06:32 +05:30

23 lines
380 B
Markdown

# ack
> A search tool like grep, optimized for programmers.
- Find files containing "foo":
`ack {{foo}}`
- Find files of a specific type:
`ack --ruby {{foo}}`
- 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}}`
- List all valid types:
`ack --help=types`