How to make recoll program to show files with specific extension (for example, *.cpp, *.txt, etc)?
Asked
Active
Viewed 876 times
3
-
Hmmm....I don't understand your question. – mdpc Jan 02 '13 at 20:20
-
1@mdpc I'm not sure which part; he wants to do a text search with [recoll](http://www.lesbonscomptes.com/recoll/), but only return files with the extensions he specifies – Michael Mrozek Jan 02 '13 at 20:36
-
maybe I don't remember seeing a 'recoll' command in UNIX/Linux (thought it might be a mispelling).... – mdpc Jan 02 '13 at 20:44
-
@MichaelMrozek You are right. I meant exactly what you have said. – ASten Jan 02 '13 at 20:57
-
Found solution here: [link](http://www.lesbonscomptes.com/recoll/usermanual/rcl.search.lang.html) – ASten Jan 02 '13 at 21:44
1 Answers
2
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
extspecifies the file name extension (Ex:ext:html)
https://www.lesbonscomptes.com/recoll/usermanual/webhelp/docs/RCL.SEARCH.LANG.html
Nathaniel M. Beaver
- 1,246
- 13
- 28
ASten
- 671
- 5
- 7
-
http://www.lesbonscomptes.com/recoll/usermanual/usermanual.html (updated URL). Also I think just "recollq ext:cpp" works, no need for "include"? – 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 07:40