tigh 发表于 2018-8-24 09:09:17

shell习题-判断函数

#!/bin/bash  

  
f_judge (){
  
    if [ -d /home/log ]
  
    then
  
      mv /home/tmp* /home/log/
  
    else
  
      mkdir -p /home/log
  
      exit
  
    fi
  
}


页: [1]
查看完整版本: shell习题-判断函数