简单 shell 命令

1 #/bin/bash
2 echo -n "IP:" # -n 代表不换行
3 read ip     # 读取输入到 ip 变量
4 echo "you ip is " $ip

posted @ 2019-11-05 22:22  人间最美二月天  阅读(195)  评论(0编辑  收藏  举报