search in all files in a folder bash code example Example: bash search file in directory grep -rnw '/path/to/somewhere/' -e 'pattern'