take an optional target directory argument
This commit is contained in:
parent
a88c50569c
commit
d02a150884
@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
define="$1"
|
||||
exec grep --exclude-dir .svn --color=auto -R "define *\\<${define}\\>" .
|
||||
where="$2"
|
||||
if [[ "x$where" == "x" ]]; then
|
||||
where=.
|
||||
fi
|
||||
exec grep --exclude-dir .svn --color=auto -R "define *\\<${define}\\>" ${where}
|
||||
|
Loading…
x
Reference in New Issue
Block a user