From 3635dcf8c34698380d05eb8f8f649d95dc318261 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 10 Dec 2014 16:27:35 -0500 Subject: [PATCH] bit of a bug in initial check-in; was not passing filename to first grep. --- scripts/text/grep_two_patterns.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.34.1