Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a folder with subfolders in it and many libreoffice documents (.odt).

I need to find in which one there's a particular phrase.

I tried grep -ir "search phrase here" . but it only found the search phrase in an xml file.

Is there a way to search in documents that are not plain text files?

share|improve this question
    
Have a look at Recoll. –  Glutanimate Jun 22 '13 at 4:30
    
Is there a command line alternative? –  To Do Jun 22 '13 at 10:09
    
Recoll does have a poweful CLI interface. –  Glutanimate Jun 23 '13 at 1:15
1  
@Glutanimate, here's a thread specific to .odt files: ubuntuforums.org/showthread.php?t=899179. Recoll wants to pull in lot of qt dependencies. –  user25656 Jan 22 at 6:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.