Merge "Make cgrep look for *.c, *.cc, *.cpp, *.h exclusively."

This commit is contained in:
Ficus Kirkpatrick 2010-03-01 17:02:01 -08:00 committed by Android (Google) Code Review
commit 384ab7acf4
1 changed files with 1 additions and 1 deletions

View File

@ -771,7 +771,7 @@ function jgrep()
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()