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
精彩评论