[script] find-nosvn use xarg instead of --exec so it launch 1 grep only

This commit is contained in:
Mathieu Maret 2011-10-13 14:55:33 +02:00
parent 95c9893c00
commit 50185a3411
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,6 @@ echo -e "${txtRED}searching for $@${txtdfl}";
#find . -not -iwholename "*.svn" -name "*.[ch]" -exec grep -nH --color=auto $@ {} \;
find . -type d -a -name .svn -prune -o -name "*.[ch]" -exec grep -nH --color=always "$@" {} \;
find . -type d -a -name .svn -prune -o -name "*.[ch]" | xargs grep -nH --color=always "$@"
#find . -name "*.[ch]" -exec grep -nH --color=auto --exclude-dir=.svn $@ {} \;
#try ack