所谓覅破解 发表于 2018-8-27 07:31:48

shell中断继续退出

  在循环中起关键的词:break、continue、exit
  break
http://note.youdao.com/yws/res/3245/WEBRESOURCE132ee14de25ca983e690a082c34a51f4
http://note.youdao.com/yws/res/3251/WEBRESOURCE12cc1dcb546630065dcc22dec9322913
  说明:结束整个循环,并不是shell脚本
  continue
  把break换成continue
http://note.youdao.com/yws/res/3252/WEBRESOURCE0f84ce05e86a1239aa6f9ab526a9fd2e
  说明:结束本次循环
  exit
  把continue换成exit
http://note.youdao.com/yws/res/3255/WEBRESOURCE6866057b199330acf8f1eaf11e0ae4ef
  说明:结束shell脚本

页: [1]
查看完整版本: shell中断继续退出