corrected erroneous return type in test hash table. made search_text skip binary...
[feisty_meow.git] / scripts / text / search_text.sh
index 48905405074de13f16d3b37e8d0abd813a393893..c0abee90a5259f4363eabe69543d44fd27e16dd4 100644 (file)
@@ -50,6 +50,11 @@ find "$dir" -type f \( -iname "*" \
   ! -iname "*.xls" \
   ! -iname "*.xlsx" \
   ! -iname "*.zip" \) \
-  -exec echo "\"{}\"" ';' | xargs grep -li -- "$seek" | grep -v "^\.[^\/]\|\/\."
+  -exec echo "\"{}\"" ';' | xargs grep -li --binary-files=without-match -- "$seek" | grep -v "^\.[^\/]\|\/\."
+
+# first grep looks in every valid file for the pattern requested.
+# second grep strains out dot files.
+#hmmm: why are we doing that second step?
+