20160826/57bfed0f3571d.jpg

The best life is use of willing attitude, a happy-go-lucky life.

— Mr.Wang

头像

Linux反选删除文件

发布时间:2016-08-26 15:17:35

发布作者:admin

6293

最简单的方法是# shopt -s extglob      (打开extglob模式)

# rm -fr !(file1)

如果是多个要排除的,可以这样:

# rm -rf !(file1|file2)


相关文章:
  1. swoole 服务端heartbeat_check_interval心跳检测 客户端 swoole_timer_tick 发送心跳包 这里只是个demo参考
  2. Windows Server 2008中的KVM VPS虚拟化自定义ISO镜像/磁盘驱动器的Virtio驱动
  3. ThinkPHP3.2.3 RCE漏洞
  4. php如何判断IP为有效IP地址