find .-name .repo -prune-o-name .git -prune-o-type f -iregex'.*\.\(c\|h\|cc\|cpp\|S\|java\|xml\|sh\|mk\|aidl\)'\
-execgrep--color-n"$@"{} +
}
;;
esac
@@ -1080,61 +1082,73 @@ function gettargetarch
function ggrep()
{
find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-type f -name"*\.gradle"-print0 | xargs -0grep--color-n"$@"
find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-type f -name"*\.gradle"\
-execgrep--color-n"$@"{} +
}
function jgrep()
{
find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-type f -name"*\.java"-print0 | xargs -0grep--color-n"$@"
find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-type f -name"*\.java"\
-execgrep--color-n"$@"{} +
}
function cgrep()
{
find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-type f \(-name'*.c'-o-name'*.cc'-o-name'*.cpp'-o-name'*.h'-o-name'*.hpp'\)-print0 | xargs -0grep--color-n"$@"
find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-type f \(-name'*.c'-o-name'*.cc'-o-name'*.cpp'-o-name'*.h'-o-name'*.hpp'\)\
-execgrep--color-n"$@"{} +
}
function resgrep()
{
for dir in`find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-name res -type d`;do find $dir-type f -name'*\.xml'-print0 | xargs -0grep--color-n"$@";done;
for dir in`find .-name .repo -prune-o-name .git -prune-o-name out -prune-o-name res -type d`;do
find $dir-type f -name'*\.xml'-execgrep--color-n"$@"{} +