Shell脚本-从入门到精通.pptVIP

  • 49
  • 0
  • 约2.54千字
  • 约 74页
  • 2019-04-15 发布于江西
  • 举报
Linux 操作系统;主要内容和学习要求; Shell 脚本; Shell 脚本的编写; 第一行:指定用哪个程序来编译和执行脚本。;#!/bin/bash # This is the first Bash shell program # ScriptName: greetings.sh echo echo –e Hello $LOGNAME, \c echo its nice talking to you. echo Your present working directory is: pwd # Show the name of present directory echo echo –e The time is `date +%T`!. \nBye echo;echo命令;参 数:;#!/bin/bash # This script is to test the usage of read # Scriptname: ex4read.sh echo === examples for testing read === echo -e What is your name? \c read name echo Hello $name echo echo -n Where do you work? read echo I guess $REPLY keeps you b

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档