ack

一个类似 grep 的搜索工具,为程序员优化。 另见 rg,它要快得多。 更多信息:https://beyondgrep.com/documentation.

ack "{{search_pattern}}"

ack --ignore-case "{{search_pattern}}"

ack -o "{{search_pattern}}"

ack --type {{ruby}} "{{search_pattern}}"

ack --type no{{ruby}} "{{search_pattern}}"

ack --count --no-filename "{{search_pattern}}"

ack --count --files-with-matches "{{search_pattern}}"

ack --help-types