🌱 Search for a string in all files in given directory
grep -R <stringToSearch> <dirName>
e.g to search “text” in current directory and all the files inside
grep -R "text" .
If you want to get number of occurrences use wc -l as pipe
grep -R "text" . | wc -l