sh test.sh /web/vsnoon.com *.php 'mkdir

vi test.sh

#!/bin/sh

find $1 -iname "$2"|while read filename

do

code=`cat $filename |grep $3 -nr`

if [ "$code" != "" ];then

echo $filename

echo $code

fi

done|more