find和xargs、exec、ok的故事
2016-10-19 11:00
162 查看
1.find . -name "core" -print | xargs file
find / -type f exec ls -l {} \;
find / -type f ok rm -rf {} \;
find logs -type f -mtime +5 ok rm -r {} \; 删除5天前文件
find / -type f exec ls -l {} \;
find / -type f ok rm -rf {} \;
find logs -type f -mtime +5 ok rm -r {} \; 删除5天前文件
相关文章推荐
- find -exec 与 find - xargs 的差别
- find命令之xargs,exec
- find 和xargs 结合使用修改文件名,和exec做备份
- Shell之 find -exec -ok 的用法
- find,exec和xargs使用
- Shell之 find -exec -ok 的用法
- find -exec -ok 的用法 -mtime
- find命令之xargs与exec
- find xargs exec使用技巧
- 使用find命令时 |xargs(管道xargs)与-exec的区别
- find 命令-exec 参数与 xargs之间的区别
- BASH命令和SHELL脚本总结(15)find和xargs和exec和rsync
- find -exec 与 find | xargs 的差别
- find -exec -ok 的用法 -mtime
- find命令应用exec及xargs
- find,exec及xargs命令
- linux下find ... |xargs 和 -exec
- find -exec 与xargs 区别
- find -exec 与 find - xargs 的差别
- find -exec 与xargs 区别