find . -maxdepth 1 -name "文件类型" -a -type f -exec rm -rf {} \;
如删除本路径下面的html文件:
find . -maxdepth 1 -name "*.html" -a -type f -exec rm -rf {} \;
find . -maxdepth 1 -name "文件类型" -a -type f -exec rm -rf {} \;
如删除本路径下面的html文件:
find . -maxdepth 1 -name "*.html" -a -type f -exec rm -rf {} \;