2 ms·
I use this one almost every day. # Recursively search for keyword in all files of current directory grr() { grep -rHIn --exclude-dir=.git --exclude-di
by lioeters 4y ago
I use this one almost every day.
# Recursively search for keyword in all files of current directory
grr() {
grep -rHIn --exclude-dir=.git --exclude-dir=node_modules --exclude=*.min.* --exclude=*.map "$@" . 2>&1 | grep -v "No such file"
}