How do i find all files containing specific text ?

We propose here an easy and immediate method to search all the files containing our string.

clear; grep -R  "STRING"   ./
clear; grep -rnw  "./"  -e "STRING"
clear; grep -Ril "STRING"   ./

 

If you want to count the number of lines then add a beautiful  | wc -l  to the end of line:

clear; grep -rnw  "./"  -e "STRING" | wc -l
clear; grep -Ril "STRING"   ./  | wc -l
sitemap_410_gone.html