#!/bin/bash # # svngrep.sh - helper wrapper for running 'egrep -r' in svn checkouts # Copyright (C) 2007 Clifford Wolf # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # # WARNING: This script needs grep-2.5.2 or grep-2.5.1a compiled with # patches/grep-2.5.1a-excl-dir.patch applied! if [ "$#" -eq 1 ]; then set -- "$1" "." fi exec egrep --recursive --exclude-dir .svn "$@"