[Libreoffice-bugs] [Bug 91743] Consider adding directory indexing/search

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 16 19:23:52 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=91743

--- Comment #6 from David Hedlund <public at beloved.name> ---
https://askubuntu.com/questions/938834/grep-for-text-in-odt-or-doc-files/938914#938914
lists a script for fulltext search for _all_ LibreOffice (OD* files) documents
in a folder.

#!/bin/bash

find . -type f -name "*.od*" | while read i ; do
   [ "$1" ] || { echo "You forgot search string!" ; exit 1 ; }
   unzip -ca "$i" 2>/dev/null | grep -iq "$*"
   if [ $? -eq 0 ] ; then
      echo "string found in $i" | nl
   fi
done

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180616/3e7e6c18/attachment.html>


More information about the Libreoffice-bugs mailing list