LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-20-2006, 03:00 AM   #1
saavik
Member
 
Registered: Nov 2001
Location: NRW, Germany
Distribution: SLES11 / FC20/ OES / CentOS
Posts: 606

Rep: Reputation: 32
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!
 
Old 01-20-2006, 06:23 AM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
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.

Last edited by carl0ski; 01-20-2006 at 06:31 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Microsoft Word,Excel " in a file sailajabhandaru General 1 12-10-2005 07:57 AM
Are the words " Word,Excel,PowerPoint" are proprietary sailajabhandaru General 12 12-06-2005 09:51 PM
[c] searching for a word in a file saiz66 Programming 1 10-04-2004 10:46 PM
how to recover MS-WORD and MS-EXCEL password protected file in Linux !!! hitesh_linux Linux - Software 1 07-15-2003 04:05 PM


All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration