read me of del.sh

一:逻辑
1.判断参数个数为1,否则退出
2.判断目录存在 ,否则退出
3.判断目录不为:"/" 或 "" 或"/root",否则退出
4.符合条件的文件个数 > 0,  则执行删除 并列出删除文件列表。否则退出。




二:执行命令
1.如果没有执行权限,则授权: 
  chmod 0777 del.sh 
2.调用SHELL
  /del.sh  "路径名称" > log

你可能感兴趣的:(read me of del.sh)