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

  • Hmmm....I don't understand your question.
    – mdpc
    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 Jan 2, 2013 at 20:36
  • maybe I don't remember seeing a 'recoll' command in UNIX/Linux (thought it might be a mispelling)....
    – mdpc
    Jan 2, 2013 at 20:44
  • @MichaelMrozek You are right. I meant exactly what you have said.
    – ASten
    Jan 2, 2013 at 20:57
  • Found solution here: link
    – ASten
    Jan 2, 2013 at 21:44

1 Answer 1


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:


will show *.cpp files, while


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)



You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .