From 5a75a9e7a1ec23870efcb2513f55e66081c02bee Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Tue, 1 Mar 2011 00:49:42 +0100 Subject: [PATCH] [script] find without looking into .svn --- scripts/find-nosvn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/find-nosvn diff --git a/scripts/find-nosvn b/scripts/find-nosvn new file mode 100644 index 0000000..8aaac81 --- /dev/null +++ b/scripts/find-nosvn @@ -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