Shell 批量删除失效软链接
2015-08-13 00:03
561 查看
shell删除失效软连接
Mark it down to use.
#! /bin/bash read path if [ -z $path ] then echo "please enter scan path" exit fi for file in $(find $path -type l) do if [ ! -e $file ] then echo "rm $file" rm -f $file fi done
Mark it down to use.
相关文章推荐
- BAPC2014 B&&HUNNU11582:Button Bashing(BFS)
- 用C,shell实现俩文件合并
- shell脚本回顾01:脚本跟踪和脚本参数
- Shell编程之正则表达式
- shell 函数
- shell命令
- shell相关
- Shell脚本学习(一) - 创建脚本
- shell编程之正则表达式
- 如何替换Windows的Shell(即explorer.exe)
- 负载均衡之LVS--Shell脚本配置LVS
- #每日Linux小练习#08 Shell Script知识点总结(下)
- shell_wc(统计数目)、head(查看前几行)、tail(查看末尾几行)
- 菜鸟初识shell
- 【Powershell】【CPU使用率】脚本实时获取所有cpu使用时间非0的进程
- ios bash 使用记录
- 使用apt-get彻底删除软件方法
- bash环境
- bash:快捷键
- 文本处理类命令