2013-03-05 65 views

回答

0

你可以做到这一点!

find . -type f \(-iname "*.html" ! -iname "template.html" ! -iname "list.html" \) -exec rm -rf {} \; 
0

使用 - 不是:

find . -name "*.html" -not -name template.html -not -name list.html -exec rm -rf {} \; 
0

尝试以下操作:

find . -type f -iname \*.html ! -iname template.html ! -iname list.html -exec rm -f -- {} + 
相关问题