Well, it might help if you told us what the 'text string' is (in case there's something unusual about it - special characters perhaps?) and some of the things you've tried? Anyhow here are some other things you can try
Simplest - will find instances of 'text string' in any non-binary files (regardless of extension):
Code:
grep -Ilr 'text string' /path/to/parent/
Old school (find files with .htm / .html extension (case insensitive) and grep for 'text string' in each non-binary one):
Code:
find tests -iname '*.htm?' -exec grep -Il 'text string' {} +
Using a recursive shell glob
Code:
shopt -s globstar
grep -Il 'text string' /path/to/parent/**/*.htm?
Add a lower-case -i to the greps if you want the actual 'text string' match to be case-insensitive.
Bookmarks