Skip to content

Instantly share code, notes, and snippets.

@kozy4324
Created March 9, 2012 10:01
Show Gist options
  • Save kozy4324/2005912 to your computer and use it in GitHub Desktop.
Save kozy4324/2005912 to your computer and use it in GitHub Desktop.
shでパスワード入力を受け付ける
#!/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