scriptwithcomments.sh
来自「Solaris环境下Shell编程编程」· Shell 代码 · 共 25 行
SH
25 行
#!/bin/sh# This script clears the window, greets the user, # and displays the current date and time.clear # Clear the windowecho "SCRIPT BEGINS"echo "Hello $LOGNAME!" # Greet the user echoecho "Todays date and time: \c"date # Display current date and timeechomynum=21 # Set a local shell variablemyday="Monday" # Set a local shell variableecho "The value of mynum is $mynum"echo "The value of myday is $myday"echoecho "SCRIPT FINISHED!!"echo
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?