Linux operation of all files except a certain file / folder

https://www.cnblogs.com/TDXYBS/p/10942180.html

Equivalent to the inversion in the regular, such as:

# 删除当前文件夹中除temp之外的所有文件或者文件夹
rm !(temp) -rf

## 同理,mv,cp 可以同样操作,

Guess you like

Origin www.cnblogs.com/qianxunman/p/12675683.html