#!/bin/sh pattern="$1" shift exec grep --exclude-dir=.svn --exclude-dir=.git --exclude=tags --color=auto -HIrn "\<$pattern\>" "$@"