rwx/sh/alias/grep.sh

10 lines
155 B
Bash
Raw Normal View History

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