ack
A search tool like grep, optimized for developers. tldr-pages
On several platforms
Several platforms
Search for files containing a string or regex in the current directory recursively
ack "search_pattern"IdentifySearch for a case-insensitive pattern
ack --ignore-case "search_pattern"IdentifySearch for lines matching a pattern, printing only the matched text and not the rest of the line
ack --output '$&' "search_pattern"IdentifyLimit search to files of a specific type
ack --type ruby "search_pattern"IdentifyDo not search in files of a specific type
ack --type noruby "search_pattern"IdentifyCount the total number of matches found
ack --count --no-filename "search_pattern"IdentifyPrint the file names and the number of matches for each file only
ack --count --files-with-matches "search_pattern"IdentifyList all the values that can be used with --type
ack --help-typesIdentify