Linux Shell 读取用户输入

在Linux Shell下读取用户输入可以使用read命令。

用法:

echo "Input something:"
read input
echo "Your input is: $input"


运行结果:

Input something:
hahaha
Your input is: hahaha




posted @ 2016-10-12 10:23  simmerlee  阅读(182)  评论(0)    收藏  举报