#!/bin/sh
#Filename:inputPassword.sh
echo -e "Enter password:"
stty -echo
read password
if [ ${password} -eq "123456" ];then
echo "correct password"
else
echo "incorrect password"‘
fi
#重新回显
stty echo
echo
echo 'your password is' ${password}
echo Password read.