[script] find without looking into .svn

This commit is contained in:
Mathieu Maret 2011-03-01 00:49:42 +01:00
parent f16f078bf0
commit 5a75a9e7a1
1 changed files with 11 additions and 0 deletions

11
scripts/find-nosvn Normal file
View File

@ -0,0 +1,11 @@
#!/bin/sh
txtRED='\e[1;31m' # Red
txtdfl='\e[0m' # Default
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 . -name "*.[ch]" -exec grep -nH --color=auto --exclude-dir=.svn $@ {} \;
#try ack