From kde-devel Tue Dec 31 09:05:16 2002 From: Ferdinand Gassauer Date: Tue, 31 Dec 2002 09:05:16 +0000 To: kde-devel Subject: kfind does not retrieve text from kword (all koffice ?) files - critical missing functionality X-MARC-Message: https://marc.info/?l=kde-devel&m=104132570925790 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--Boundary-00=_M3VE+riIYKrBSsf" --Boundary-00=_M3VE+riIYKrBSsf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! see http://bugs.kde.org/show_bug.cgi?id=44500 I attach a shellscript (dirty hack) which searches in kwd files, but I do not know a) if this covers everything b) how to implement it in kfind c) if it is realy necessary to use the UNZIPDIR d) the "^" is not a good solution, but I do not know better -- cu ferdinand http://www.goesing.at --Boundary-00=_M3VE+riIYKrBSsf Content-Type: text/plain; charset="us-ascii"; name="kofind" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="kofind" UNZIPDIR=~/unzip_tmp for i in `find . -name "*.kwd" | sed -e 's/ /^/g' ` do rm -fr $UNZIPDIR/* # extract unzip -q -d $UNZIPDIR "`echo $i | sed -e 's/\^/ /g'`" 2>/dev/null # look for search string anz=`find $UNZIPDIR -name "*.xml" |xargs grep -i "$1" |wc -l` # return filename if string found if [ $anz != 0 ] then echo $i | sed -e 's/\^/ /g' fi done rm -r $UNZIPDIR --Boundary-00=_M3VE+riIYKrBSsf-- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<