bash find file in directory code example
Example 1: bash search file in directory
grep -rnw '/path/to/somewhere/' -e 'pattern'
Example 2: how to find a file in linux terminal
find /path/to/folder/ -iname *file_name_portion*
Example 3: bash find file in directory
$ ls -R | grep -i "pattern"
Example 4: bash find file
# syntax
# find *</path/to/dir> '(' *<filter-1> -o *<filter-2> ')'
# example
find . '(' -name '*ERR5312209.zip' -o -name '*ERR5312209.TXT' ')'