shell read 交互输入
# 读到变量显示出的内容 read -p # 隐藏输入结果 read -s # 实例 vim test.sh #!/bin/bash read -p "Please input username: " NAME read -p "Please input password: " -s PASSWD
本文来自博客园,站在巨人的肩膀上,坚持开源精神,遵循开源协议:Apache Licene 2.0协议。
# 读到变量显示出的内容 read -p # 隐藏输入结果 read -s # 实例 vim test.sh #!/bin/bash read -p "Please input username: " NAME read -p "Please input password: " -s PASSWD
本文来自博客园,站在巨人的肩膀上,坚持开源精神,遵循开源协议:Apache Licene 2.0协议。