#!/bin/bash#用户名为 tom 并且密码为 123456,则提示登录成功,否则提示登录失败read ‐p "请输入用户名:" userread ‐p "请输入密码:" passif [ "$user" == 'tom' ‐a "$pass" == '123456' ];thenecho "Login successful"elseecho "Login Failed"fi