Skip to main content
Whoops, corrected functions.
Source Link

find ./ -name $i"$1" -exec grep -l $2"$2" {} \; should do the trick.

find ./ -name $i -exec grep -l $2 {} \; should do the trick.

find ./ -name "$1" -exec grep -l "$2" {} \; should do the trick.

Source Link

find ./ -name $i -exec grep -l $2 {} \; should do the trick.