LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Searching software for Word, Excel, zip and openoffic documentes (https://www.linuxquestions.org/questions/linux-software-2/searching-software-for-word-excel-zip-and-openoffic-documentes-405683/)

saavik 01-20-2006 02:00 AM

Searching software for Word, Excel, zip and openoffic documentes
 
Hy!


We have here a SLES serving our user files.

We have lots of zipped Directorys and are in need of a good searching tool which must be able to find stings in Word-,Exceldocuments, Zipped and rar-Archives and OpenOffice documentes.

Does anybody know a Software which can help?

Thanks!

carl0ski 01-20-2006 05:23 AM

Quote:

Originally Posted by saavik
Hy!


We have here a SLES serving our user files.

We have lots of zipped Directorys and are in need of a good searching tool which must be able to find stings in Word-,Exceldocuments, Zipped and rar-Archives and OpenOffice documentes.

Does anybody know a Software which can help?

Thanks!

Barring the zip files

Beagle and KAT can index contents of files


this is a very simple solution
Code:

alias seek='unzip $1 -C *.doc *.cvs *.odt&&cat *.doc *.cvs *.odt| grep -l -R -i $2'
seek zipfile whatyouwanttofind


unzip $1 -C *.doc *.cvs *.odt; cat *.doc *.cvs *.odt
this only extracts the files that end with *.doc *.cvs *.odt
ignores the rest

cat *.doc *.cvs *.odt

cat reads the and | sends then to grep to find the lines you want $2=whatyouwanttofind.



If you've run you'll see it is far from a complete solution but is a start.
if you know anything about script you can improve this simple solution.


All times are GMT -5. The time now is 07:53 AM.