模拟linnux登录shell
#!/bin/bashecho -n "login:"read nameecho -n "passwd:"read passwdif [ $name="aaa" -a passwd="aaa" ]; then echo "the host and passwd is right!"else echo "input is error!"fi
[root@localhost shell]# sh 5_login.shlogin:aaapasswd:aaathe host and passwd is right!