From: Colin Watson Date: Tue, 17 Jan 2006 23:13:00 +0000 (+0000) Subject: add support for excluding .bzr directories X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?p=bin.git;a=commitdiff_plain;h=16912172c0c8970e3b2de5829aaea54daf9b03e4;hp=2cd87713f5f753a7bf8b847fdb133dc999d64baa add support for excluding .bzr directories --- diff --git a/wcgrep b/wcgrep index a68ad37..2f19476 100755 --- a/wcgrep +++ b/wcgrep @@ -54,6 +54,6 @@ for (( i=1; i <= $arg_count; i++ )); do fi done -find $pathargs -regex ${WCGREP_IGNORE:-'.*~$\|.*/\(\.svn\|\{arch\}\)\(/\|$\)'} -prune -o \ +find $pathargs -regex ${WCGREP_IGNORE:-'.*~$\|.*/\(\.svn\|\{arch\}\|\.bzr\)\(/\|$\)'} -prune -o \ -type f -print0 | xargs -r0 ${WCGREP_GREP:-grep} ${WCGREP_GREPARGS:--HnI} \ $grepargs "$pattern"