开发者

egrep with a filemask

How can i alter this command to only search through .tpl and .php files within the underlying directory structure?

egrep "\[#([^]])+#\]|_t?\(([^\)])+\)|\{_t ([^\}])+\}" . -RohiIs开发者_开发技巧 | sort | uniq


Use find, e.g.

$ find . \( -name \*.tpl -o -name \*.php \) -exec egrep <flags> <expression> {} \; | sort | uniq

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜