如何在rgrep中指定多个文件扩展名? [英] how to specify multiple file extensions in rgrep?

查看:539
本文介绍了如何在rgrep中指定多个文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过*。{cc,hh},但它不起作用(这对于lgrep而言)。我也尝试了该方法建议她 http:// compgroups .net / comp.emacs / searching-multiple-file-types-with-rgrep / 95027 ,但似乎交互模式不允许我输入空间。任何想法?

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?

推荐答案

*。cc * .hh 是正确的。然后,find命令将使用以下内容:

\(-iname \ * .cc -o -iname \ * .hh \)

*.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.)

您可以使用 quoted-insert Cq SPC 直接输入空格-one-space M-SPC

这篇关于如何在rgrep中指定多个文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆