added a -- to close off flags, allowing patterns like '--pattern' to be sought.
authorChris Koeritz <fred@gruntose.com>
Tue, 20 May 2014 19:42:54 +0000 (15:42 -0400)
committerChris Koeritz <fred@gruntose.com>
Tue, 20 May 2014 19:42:54 +0000 (15:42 -0400)
scripts/text/search_text.sh

index e88c58d8867fe648bb0508312be5ddf667168d78..eb00a89444b459c01297ff374bd7f9a6efbe5f87 100644 (file)
@@ -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 "^\.[^\/]\|\/\."