问题1:
#!/bin/bash # auth: xiluhua # date: 2017-01-15 while true do read -p ‘please input a film: ‘ film if [ -z $film ] then echo > /dev/null else if [ $film = ‘q‘ ] then exit fi if [ $film = ‘ironman‘ ] then echo $film‘ is a good film!‘ exit 0; else echo ‘this film is not good enough‘ fi fi done
原文:http://www.cnblogs.com/xiluhua/p/6286974.html