正在加载图片...
Shell脚本举例 #!/bin/bash This is the first Bash shell program Scriptname:greetings.sh echo echo -e "Hello $LOGNAME,\c" echo "it's nice talking to you." echo -e "Your present working directory is:" pwd Show the name of present directory echo echo "The time is date +!\nBye" echo sh greetings chmod +x greetings greetings5 #!/bin/bash # This is the first Bash shell program # Scriptname: greetings.sh echo echo –e "Hello $LOGNAME, \c" echo "it's nice talking to you." echo –e "Your present working directory is:" pwd # Show the name of present directory echo echo "The time is `date +%T`!. \nBye" echo sh greetings chmod +x greetings greetings Shell 脚本举例
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有