直接上脚本:
#!/bin/bash
#Filename:password.sh
echo -e "Enter password: "
stty -echo
read password
stty echo
echo
echo Password read.
echo $password
时间: 2024-10-14 12:48:35
直接上脚本:
#!/bin/bash
#Filename:password.sh
echo -e "Enter password: "
stty -echo
read password
stty echo
echo
echo Password read.
echo $password