bit of a bug in initial check-in; was not passing filename to first grep.
authorChris Koeritz <fred@gruntose.com>
Wed, 10 Dec 2014 21:27:35 +0000 (16:27 -0500)
committerChris Koeritz <fred@gruntose.com>
Wed, 10 Dec 2014 21:27:35 +0000 (16:27 -0500)
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"