Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

The solution is to use "query language" in recoll request. After choosing that it is possible to make request in which file extension is specified. For example, query include ext:cpp will show *.cpp files. Source: http://www.lesbonscomptes.com/recoll/usermanual/rcl.search.lang.html.

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

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.