added grepdefine and grepid

This commit is contained in:
Josh Holtrop 2010-11-03 14:53:52 -04:00
parent b057ea238e
commit dacf8474d5
2 changed files with 8 additions and 0 deletions

4
grepdefine Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
define="$1"
exec grep --exclude-dir .svn --color=auto -R "define *\\<${define}\\>" .

4
grepid Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
id="$1"
exec grep --exclude-dir .svn --color=auto -R '\<'"${id}"'\>' .