config/scripts/find-nosvn

12 lines
377 B
Plaintext
Raw Normal View History

#!/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 $@ {} \;
2011-09-16 16:21:56 +02:00
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