Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to specify multiple file extensions in rgrep?

Tags:

emacs

I tried *.{cc,hh} but it doesn't work (this works for lgrep though). i also tried the method suggested her e http://compgroups.net/comp.emacs/searching-multiple-file-types-with-rgrep/95027 but it seems the interactive mode doesn't allow me to input space. Any idea?

like image 620
del bao Avatar asked Feb 12 '23 09:02

del bao


1 Answers

*.cc *.hh is correct. The find command will then use something like:
\( -iname \*.cc -o -iname \*.hh \)

(If you supply a prefix argument, you can view/edit the command before it is executed.)

You can enter the space using quoted-insert: C-qSPC, or just-one-space: M-SPC

like image 87
phils Avatar answered Feb 23 '23 10:02

phils