find . -type f -exec sh -c \' if [cat ${1} == \"abc\" ] then echo ${1} fi\' _ {} \\;
I got this error:
_: -c: line 1: syntax error:
Put spaces after '[' and before ']' and a ';' after the ']'
another way is to use
[ `cat ${1}` == "abc" ] && echo ${1}