bash find file or directory code example
Example 1: bash search file in directory
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: bash find file in directory
$ ls -R | grep -i "pattern"
grep -rnw '/path/to/somewhere/' -e 'pattern'
$ ls -R | grep -i "pattern"