From: Chris Koeritz Date: Wed, 10 Dec 2014 21:27:35 +0000 (-0500) Subject: bit of a bug in initial check-in; was not passing filename to first grep. X-Git-Tag: 2.140.90~732 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=3635dcf8c34698380d05eb8f8f649d95dc318261;p=feisty_meow.git bit of a bug in initial check-in; was not passing filename to first grep. --- diff --git a/scripts/text/grep_two_patterns.sh b/scripts/text/grep_two_patterns.sh index 6ba40978..248bc514 100644 --- a/scripts/text/grep_two_patterns.sh +++ b/scripts/text/grep_two_patterns.sh @@ -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"