linux find and or code example
Example 1: bash find files or operator
# syntax
# find *</path/to/dir> '(' *<filter-1> -o *<filter-2> ')'
# example
find . '(' -name '*ERR5312209.zip' -o -name '*ERR5312209.TXT' ')'
Example 2: bash find files and operator
# syntax
# find *</path/to/dir> '(' *<filter-1> -a *<filter-2> ')'
# example
find . '(' -name '*ERR5312209.zip' -a -name 'ANDROID_ERR*.TXT' ')'