2011-03-31 2 views
0

기본 디렉토리 구조 내에서 .tpl 및 .php 파일 만 검색하려면 어떻게해야합니까?egrep with filemask

egrep "\[#([^]])+#\]|_t?\(([^\)])+\)|\{_t ([^\}])+\}" . -RohiIs | sort | uniq 

답변

1

find을 사용하십시오.

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