web | Java

shell 脚本如何获取输入的值 ?

千锋教育

a) 通过参数 ./script param1 param2 


b) 通过 read 命令 read -p "please input: " desthost Echo $desthost