projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42fc4d3
)
bit of a bug in initial check-in; was not passing filename to first grep.
author
Chris Koeritz
<fred@gruntose.com>
Wed, 10 Dec 2014 21:27:35 +0000
(16:27 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Wed, 10 Dec 2014 21:27:35 +0000
(16:27 -0500)
scripts/text/grep_two_patterns.sh
patch
|
blob
|
history
diff --git
a/scripts/text/grep_two_patterns.sh
b/scripts/text/grep_two_patterns.sh
index 6ba409785e0d48241331f195f6cf44bfdbbc11c2..248bc514e3ca9fbe54d93cfa9ec90663db93c5eb 100644
(file)
--- 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"