rm删除-排除指定文件

217 阅读1分钟
1、排除一个
rm -rf `ls *|egrep -v catalina.out`
2、排除多个
rm -rf `ls *|egrep -v '(test.txt|fff.txt|ppp.txt)'`