0
기본 디렉토리 구조 내에서 .tpl 및 .php 파일 만 검색하려면 어떻게해야합니까?egrep with filemask
egrep "\[#([^]])+#\]|_t?\(([^\)])+\)|\{_t ([^\}])+\}" . -RohiIs | sort | uniq
기본 디렉토리 구조 내에서 .tpl 및 .php 파일 만 검색하려면 어떻게해야합니까?egrep with filemask
egrep "\[#([^]])+#\]|_t?\(([^\)])+\)|\{_t ([^\}])+\}" . -RohiIs | sort | uniq
find을 사용하십시오.
$ find . \(-name \*.tpl -o -name \*.php \) -exec egrep <flags> <expression> {} \; | sort | uniq