7 if [ -z "$pat1" -o -z "$pat2" ]; then
8 echo "this script requires a folder and two patterns to search."
9 echo "all files in the folder (and sub-folders) that contain both patterns"
10 echo "will be displayed."
14 find "$folder" -type f -exec grep -lZ "$pat1" "{}" ';' | xargs -0 grep -l "$pat2"