bit of a bug in initial check-in; was not passing filename to first grep.
[feisty_meow.git] / scripts / text / grep_two_patterns.sh
index 6ba409785e0d48241331f195f6cf44bfdbbc11c2..248bc514e3ca9fbe54d93cfa9ec90663db93c5eb 100644 (file)
@@ -11,5 +11,5 @@ if [ -z "$pat1" -o -z "$pat2" ]; then
   exit 1
 fi
 
-find "$folder" -type f -exec grep -lZ "$pat1" ';' | xargs -0 grep -l "$pat2"
+find "$folder" -type f -exec grep -lZ "$pat1" "{}" ';' | xargs -0 grep -l "$pat2"