From a92eb874f58190461e2e28b5d6487b8ee72144bd Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Tue, 20 May 2014 15:42:54 -0400 Subject: [PATCH] added a -- to close off flags, allowing patterns like '--pattern' to be sought. --- scripts/text/search_text.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/text/search_text.sh b/scripts/text/search_text.sh index e88c58d8..eb00a894 100644 --- a/scripts/text/search_text.sh +++ b/scripts/text/search_text.sh @@ -44,6 +44,6 @@ find "$dir" -type f \( -iname "*" \ ! -iname "*.tar" \ ! -iname "*.tmp" \ ! -iname "*.zip" \) \ - -exec echo "\"{}\"" ';' | xargs grep -li "$seek" | grep -v "^\.[^\/]\|\/\." + -exec echo "\"{}\"" ';' | xargs grep -li -- "$seek" | grep -v "^\.[^\/]\|\/\." -- 2.34.1