UNIX: Bash password input

read -s -p "Password: " mypasswd

or

stty -echo
read -p "Password: " mypasswd
stty echo

No comments:

Post a Comment