search file in folder linux code example
Example 1: bash search file in directory
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: how to search in a directory files in linux
# this will search all subdirectories for text (no case sensitivity)
grep -inR "your text" .
# Node: this command will search for text INSIDE Files, not file names