bash find in files code example
Example 1: bash find file in directory
$ ls -R | grep -i "pattern"
Example 2: bash find text in specific file
find <your directory path> -name "*.file_type" -type f | xargs grep "word"
Example 3: bash find file
# syntax
# find *</path/to/dir> '(' *<filter-1> -o *<filter-2> ')'
# example
find . '(' -name '*ERR5312209.zip' -o -name '*ERR5312209.TXT' ')'