#!/bin/bash # This script generalises the code from http://petersonpages.com/mariano/blog/2008/07/24/identifying-function-usage-in-php-code if [[ $# -lt 1 ]] ; then echo "Source-Control Grep: omits results from SVN and CVS subdirectories from (recursive) Grep output" echo "Usage: scgrep " else grep ${@:1} | grep -v "/.svn/\|/CVS/" fi