-
-
Save kozy4324/2005912 to your computer and use it in GitHub Desktop.
shでパスワード入力を受け付ける
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
printf "password> " | |
stty -echo | |
read PASS | |
stty echo | |
echo "" | |
echo "your password is [$PASS] :p" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment