课程: Learning Linux Shell Scripting
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Challenge: Guessing game
“
- [Narrator] Let's create a simple version of a guessing game. Create a script, guess.sh. In it, set a global variable named COMPUTER to any number one to 50. Use the READ command to prompt the user for input. If their value matches the COMPUTER, let them know that they won and exit. Else, let them know if they're too high or too low compared to the COMPUTER's number.
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。