[script] find-nosvn use xarg instead of --exec so it launch 1 grep only
This commit is contained in:
parent
95c9893c00
commit
50185a3411
@ -6,6 +6,6 @@ echo -e "${txtRED}searching for $@${txtdfl}";
|
|||||||
|
|
||||||
#find . -not -iwholename "*.svn" -name "*.[ch]" -exec grep -nH --color=auto $@ {} \;
|
#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 $@ {} \;
|
#find . -name "*.[ch]" -exec grep -nH --color=auto --exclude-dir=.svn $@ {} \;
|
||||||
#try ack
|
#try ack
|
||||||
|
Loading…
Reference in New Issue
Block a user