6

How to make recoll program to show files with specific extension (for example, *.cpp, *.txt, etc)?

5
  • Hmmm....I don't understand your question. Commented Jan 2, 2013 at 20:20
  • 1
    @mdpc I'm not sure which part; he wants to do a text search with recoll, but only return files with the extensions he specifies Commented Jan 2, 2013 at 20:36
  • maybe I don't remember seeing a 'recoll' command in UNIX/Linux (thought it might be a mispelling).... Commented Jan 2, 2013 at 20:44
  • 1
    @MichaelMrozek You are right. I meant exactly what you have said. Commented Jan 2, 2013 at 20:57
  • Found solution here: link Commented Jan 2, 2013 at 21:44

1 Answer 1

5

The solution is to use the Recoll query language. In the graphical version of Recoll, select "Query language" from the drop-down, and then use the ext: field specification. For example:

ext:cpp

will show *.cpp files, while

ext:txt

will show *.txt files.

You can also do this from the command-line like this:

recoll -t -l 'ext:cpp' | less

ext specifies the file name extension (Ex: ext:html)

https://www.lesbonscomptes.com/recoll/usermanual/webhelp/docs/RCL.SEARCH.LANG.html

2
  • lesbonscomptes.com/recoll/usermanual/usermanual.html (updated URL). Also I think just "recollq ext:cpp" works, no need for "include"? Commented Apr 18, 2015 at 17:34
  • @barrycarter Sorry, can't check it. I haven't used recoll for an year at least. Commented Apr 24, 2015 at 7:40

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.