ack一个类似 grep 的搜索工具,为程序员优化。 另见
rg,它要快得多。 更多信息:https://beyondgrep.com/documentation.
ack "{{search_pattern}}"
ack {{[-i|--ignore-case]}} "{{search_pattern}}"
ack {{[-o|--output '$&']}} "{{search_pattern}}"
ack {{[-t|--type]}} {{ruby}} "{{search_pattern}}"
ack {{[-t|--type]}} no{{ruby}} "{{search_pattern}}"
ack {{[-c|--count]}} {{[-h|--no-filename]}} "{{search_pattern}}"
ack {{[-c|--count]}} {{[-l|--files-with-matches]}} "{{search_pattern}}"
--type 一起使用的值:ack --help-types