for i in *; do
fuga=`grep hoge $i`
if test $?; then
echo $i:$fuga
fi
done