1. #!/bin/bash
    2. #用户名为 tom 并且密码为 123456,则提示登录成功,否则提示登录失败
    3. read p "请输入用户名:" user
    4. read p "请输入密码:" pass
    5. if [ "$user" == 'tom' a "$pass" == '123456' ];then
    6. echo "Login successful"
    7. else
    8. echo "Login Failed"
    9. fi