Shell脚本实战之实现密码隐藏功能

版权声明:如若转载,请联系作者。 https://blog.csdn.net/liu16659/article/details/83419723

Shell脚本实战之实现密码隐藏功能

1.代码如下

[root@server4 shells]# cat test4.sh 
#!/bin/bash
echo -e "Enter password:"
stty -echo
read password
stty echo
echo
echo "The password your input is $password"
[root@server4 shells]# ./test4.sh 
Enter password:

The password your input is 123456
[root@server4 shells]# 

猜你喜欢

转载自blog.csdn.net/liu16659/article/details/83419723
今日推荐