Here is a very simple code snippet to ask for an input without showing it on display. Great for all password inputs.
#!/bin/sh
read -p "Username: " uname
stty -echo
read -p "Password: " passw; echo
stty echo
Here is a very simple code snippet to ask for an input without showing it on display. Great for all password inputs.
#!/bin/sh
read -p "Username: " uname
stty -echo
read -p "Password: " passw; echo
stty echo
Comments
RSS feed for comments to this post