...取一行,并把输入行的每个字段的值指定给 shell 变量
#!/bin/sh
read name
echo "$name It is a test"
以上代码保存为 test.sh,name 接收标准输入的变量,结果将是:
[root@www ~]# sh test.sh
OK #标准输入
OK It is a test #输出
...
...本的linux作为服务器的操作系统。 Ubuntu系统适合安装到个人电脑中。 下载地址:https://wiki.centos.org/Download
中国的镜像地址下载更多版本:
Alibaba Cloud Computinghttp://mirrors.aliyun.com/centos/Beijing Institute of Technologyhttp://mirror.bit.edu.cn/c...