3 ms·
I've been using ack (https://beyondgrep.com/ https://beyondgrep.com/) for a while and it seems to be better suited for my specific purpose -- looking into sourc
by prolepunk 8y ago
I've been using ack (https://beyondgrep.com/ https://beyondgrep.com/) for a while and it seems to be better suited for my specific purpose -- looking into source files and avoiding things like data dumps and VCS. It may be slower than grep, but it faster in the sense that I don't spend time remembering all the parameter combinations when I search for something.
Here are a few aliases I use:
alias ack="ack --color" # color output
alias ackl="ack -l" # show file names only
acksubl () {
ack -l -i "${1}" | xargs subl
}
# Do case-insensitive search and open files in sublime.
Turns out in practice I don't use regular expressions very often when searching text, and the most frequent question is -- where is this function/variable might have been used?