If you are using GNU grep, you can use the -r
grep -lr thestring thedir
” is a regular expression and “thedir
” is the name of the directory (which can be “.
If your regular expression is a fixed string, you can use the -F
flag and if you want case-insensitive matching, you can use the -i