ack

ack

TLDR

Find files containing "foo"

>_ ack [foo]
copy

Find files of a specific type

>_ ack --ruby [foo]
copy

Count the total number of matches for the term "foo"

>_ ack -ch [foo]
copy

Show the file names containing "foo" and number of matches in each file

>_ ack -cl [foo]
copy

Search a file for a specified string

>_ ack bar "[foo bar]" [path/to/file]
copy

Search a file for the specified regex pattern

>_ ack bar "[[bB]ar \d+]" [path/to/file]
copy

List all valid types

>_ ack --help=types
copy

Copied to clipboard
free 100$ digital ocean credit