rwx/sh/alias/grep.sh
2024-11-18 18:29:57 +01:00

9 lines
161 B
Bash

# grep from current directory with regex
g() { sh_a__grep "${@}"; }
sh_a__grep() {
grep \
--directories "recurse" \
--line-number \
--regexp \
"${@}"
}