bash-read example
时间:2006-11-05 来源:0217
#!/bin/bash
#Program
# Let user keyin their username and password, and show them.
#History:
# 2006-10-1 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH read -p "Please input you username: " username
read -p "Please input you password: " password
echo -e "Your username is : $username and password is: $password"
exit 0
#Program
# Let user keyin their username and password, and show them.
#History:
# 2006-10-1 PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH read -p "Please input you username: " username
read -p "Please input you password: " password
echo -e "Your username is : $username and password is: $password"
exit 0
相关阅读 更多 +
排行榜 更多 +