通信工程实训(五)-Shell编程.pptVIP

  • 5
  • 0
  • 约1.13万字
  • 约 75页
  • 2019-12-14 发布于辽宁
  • 举报
通信工程实训(五) -Shell编程 内容 5.1.课题引入 5.2. Shell的概念与原理 5.3. Shell环境变量的设置 5.4. Shell脚本的设计与运行 cat sh01.sh #first shell echo hello shell! echo 例程 echo -n “please input your first name” read firstname echo -n “please input your last name” read lastname echo your name is:$firstname $lastname 5.4 Shell脚本的设计与运行 顺序脚本 分支脚本 循环脚本 顺序脚本 gedit t01.sh cd /dev ls 分支脚本 test if … fi case….esac 循环 while do…done until do…done for do…done test命令 格式 test express 返回: 0(真), 1(假) 例程 [root@www scripts]# gedit sh13.sh #!/bin/bash # Program: # Repeat question until user input correct answer. # Hi

文档评论(0)

1亿VIP精品文档

相关文档