LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2014, 09:42 AM   #1
ns1971
LQ Newbie
 
Registered: Jul 2014
Distribution: Ubuntu 12.04 Precise
Posts: 5

Rep: Reputation: Disabled
Grep on .odt files


Hi

How to do grep on .odt files?

Many thanks
 
Old 07-17-2014, 01:06 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,110
Blog Entries: 10

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525
My read is that you cannot do this. Try viewing an ODT file for starters and you'll see that they are encoded in a non-ASCII visible manner; therefore you cannot run simple grep to accomplish what you're looking for.

I took a quick look at LibreOffice Writer and while one can search, and search well "within" an open document, you cannot do that over multiple documents or have the concept of a Project containing multiple documents where you could search through the scope of all project files. There are macro capabilities for LibreOffice Writer, I don't know if they'd allow you to process multiple documents though.
 
Old 07-17-2014, 01:44 PM   #3
cepheus11
Member
 
Registered: Nov 2010
Location: Germany
Distribution: Gentoo
Posts: 269

Rep: Reputation: 83
ODT files are ZIP files containing a structure of files and directories. You can unzip them. The text is in xml format in content.xml.
 
  


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
Firefox not opening ODT files in Libreoffice comcastuser Linux - Software 19 04-30-2011 07:18 AM
What program in Windows to convert ODT files? ToothlessRebel General 13 10-07-2009 12:54 AM
Why doesn't cat work with odt files? Ryzol Linux - General 6 10-03-2007 08:43 PM
How do I link to odt/docx files in a webpage? matthewhardwick Programming 5 12-09-2006 07:41 PM
automatic conversion .doc to .odt? (several files) quarry_06 Linux - Software 2 01-31-2006 07:14 PM


All times are GMT -5. The time now is 05:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration