files/grepdefine
2011-03-04 12:32:12 -05:00

9 lines
163 B
Bash
Executable File

#!/bin/bash
define="$1"
where="$2"
if [[ "x$where" == "x" ]]; then
where=.
fi
exec grep --exclude-dir .svn --color=auto -R "define *\\<${define}\\>" ${where}