栗子:

不删除 logs文件夹和credential文件夹

1.  rm -rf  !(logs|credential)

2.  ls | grep -v logs |grep -v credential |xargs rm -rf