how to find all folders with a given string in bash code example Example: command line how to find all files that have a string grep -rnw '/path/to/somewhere/' -e 'pattern'