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