find a file containing specific text

Posted on Tuesday March 28th, 2017

A simple oneliner to find files containing specific text inside them

In this example we'll look for the text b33fcafe

find /path/to/check -type f -exec grep -H 'b33fcafe' {} \;