开发者

egrep with a filemask

开发者 https://www.devze.com 2023-02-20 19:21 出处:网络
How can i alter this command to only search through .tpl and .php files within the underlying directory structure?

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

精彩评论

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