From: Chris Koeritz Date: Tue, 20 May 2014 19:42:54 +0000 (-0400) Subject: added a -- to close off flags, allowing patterns like '--pattern' to be sought. X-Git-Tag: 2.140.90~791 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=a92eb874f58190461e2e28b5d6487b8ee72144bd;p=feisty_meow.git added a -- to close off flags, allowing patterns like '--pattern' to be sought. --- 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 "^\.[^\/]\|\/\."