摘要: 脚本加锁,避免多实例重复运行,常用于备份脚本中 flock -xn "/tmp/f.lock" -c "/root/a.sh" find find /etc/ -type f -regex .* wd 查看类型为文件且以wd结尾的文件 -d 文件夹 find *txt -exec rm -v {} 阅读全文
posted @ 2021-12-26 11:29 Cola1995 阅读(46) 评论(0) 推荐(0) 编辑