[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice
Subject: kfind does not retrieve text from kword (all koffice ?) files - critical missing functionality
From: Ferdinand Gassauer <gassauer () kde ! org>
Date: 2002-12-31 9:05:16
[Download RAW message or body]
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
["kofind" (text/plain)]
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
____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic