projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of feistymeow.org:feisty_meow
[feisty_meow.git]
/
scripts
/
text
/
grep_two_patterns.sh
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"