linux find all file in directory with given text code example Example: linux find all files name containing string find . -name "*ABC*" -exec grep -H 'XYZ' {} +