# -s parameter hides echo read -p 'Type your password:' -s PASSWORD
#!/bin/sh # A POSIX compliant answer stty -echo printf "Password: " read PASSWORD stty echo printf " "