new fortune.
authorChris Koeritz <fred@gruntose.com>
Thu, 26 Mar 2015 01:19:04 +0000 (21:19 -0400)
committerChris Koeritz <fred@gruntose.com>
Thu, 26 Mar 2015 01:19:04 +0000 (21:19 -0400)
scripts/text/search_text.sh

index eb00a89444b459c01297ff374bd7f9a6efbe5f87..48905405074de13f16d3b37e8d0abd813a393893 100644 (file)
@@ -24,12 +24,16 @@ find "$dir" -type f \( -iname "*" \
   ! -iname "*.dll" \
   ! -iname "*.deb" \
   ! -iname "*.dmg" \
+  ! -iname "*.doc" \
+  ! -iname "*.docx" \
   ! -iname "*.exe" \
   ! -iname "entries" \
   ! -iname "*.git" \
+  ! -iname "*.gif" \
   ! -iname "*.gz" \
   ! -iname "*.iar" \
   ! -iname "*.jar" \
+  ! -iname "*.jpg" \
   ! -iname "*.lib" \
   ! -iname "*.ncb" \
   ! -iname "*.oar" \
@@ -43,6 +47,8 @@ find "$dir" -type f \( -iname "*" \
   ! -iname "*.svn-base" \
   ! -iname "*.tar" \
   ! -iname "*.tmp" \
+  ! -iname "*.xls" \
+  ! -iname "*.xlsx" \
   ! -iname "*.zip" \) \
   -exec echo "\"{}\"" ';' | xargs grep -li -- "$seek" | grep -v "^\.[^\/]\|\/\."