Make cgrep look for *.c, *.cc, *.cpp, *.h exclusively.
It was doing '*.c*' which both included .class files and omitted .h files. Change-Id: Iedaac4f7ee86df86fdc38341c04ca565f34223b4
This commit is contained in:
parent
a5b1e4e1bb
commit
8889bdf39c
1 changed files with 1 additions and 1 deletions
|
@ -771,7 +771,7 @@ function jgrep()
|
||||||
|
|
||||||
function cgrep()
|
function cgrep()
|
||||||
{
|
{
|
||||||
find . -type f -name "*\.c*" -print0 | xargs -0 grep --color -n "$@"
|
find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.h' \) -print0 | xargs -0 grep --color -n "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
function resgrep()
|
function resgrep()
|
||||||
|
|
Loading…
Reference in a new issue