Another less elegant solution than kevs is to chain -exec commands in search together without xargs and cut:
find . -type f -exec bash -c "file -bi {} | grep -q text" \; -exec grep TEXTSEARCH {} ";"
user unknown Mar 22 '12 at 9:20 2012-03-22 09:20
source share