From 88483e4b2e402110d951327975c22421dc21a37d Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 13 Sep 2011 10:40:21 -0400 Subject: [PATCH] grepid: change usage to accept arbitrary grep arguments, require "where" param --- grepid | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/grepid b/grepid index 2b30d58..41cd828 100755 --- a/grepid +++ b/grepid @@ -1,8 +1,5 @@ #!/bin/bash id="$1" -where="$2" -if [[ "$where" == "" ]]; then - where=. -fi -exec grep --exclude-dir .svn --color=auto -R '\<'"${id}"'\>' ${where} +shift +exec grep --exclude-dir .svn --color=auto -R '\<'"${id}"'\>' "$@"