linux小知识:删除除了file1file2以外的文件

rm -rf !(file1|file2)
原文地址:https://www.cnblogs.com/chunleili/p/12758204.html