在Linux Shell下讀取用戶輸入可以使用read命令。
用法:
echo "Input something:"
read input
echo "Your input is: $input"
運行結果:
Input something:
hahaha
Your input is: hahaha
在Linux Shell下讀取用戶輸入可以使用read命令。
用法:
echo "Input something:"
read input
echo "Your input is: $input"
運行結果:
Input something:
hahaha
Your input is: hahaha