[第四章shell脚本编程.pptVIP

  • 2
  • 0
  • 约7.01千字
  • 约 40页
  • 2017-01-06 发布于北京
  • 举报
[第四章shell脚本编程

运行脚本程序 使用Shell命令程序执行脚本程序 $ bash hello.sh 使用“.”命令执行脚本程序 $ . hello.sh 直接执行具有执行属性的脚本程序 $ ./hello.sh Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile . Copyright 2004-2011 Aspose Pty Ltd. 条件测试 使用test命令 语法: 使用括号[ ] 语法: 条件表达式的值为真返回零,为假时返回非零值 test 条件表达式 [ 条件表达式 ] Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile . Copyright 2004-2011 Aspose Pty Ltd. 流程控制 if then else语句 语法 if [ 条件语句1 ] then 命令 elif [ 条件语句2 ] then 命令 else 命令 fi 条件1为真 条件1为假 条件2为真 条件2为假 Evaluation only. Created with Aspose.Slides for .NET 3.5

文档评论(0)

1亿VIP精品文档

相关文档