正在加载图片...
Shell脚本举例 #!/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 Sname" echo echo -n "Where do you work?" read echo "I guess SREPLY keeps you busy!" echo rea 1-p "Enter your job title:" echo "I thought you might be an SREPLY." echo echo "===End of the script == 6 #!/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 busy!" echo read -p "Enter your job title: " echo "I thought you might be an $REPLY." echo echo "=== End of the script ===" Shell 脚本举例
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有