#/bin/bash
#########以上是脚本内容###
sh test.sh
可以看到 cmd1 cmd2 都执行了
如果是
###########以下是脚本##
#/bin/bash
########### 以上是脚本内容###
会发现没有执行。
把cmd1重定向到awk后用system()函数来执行
#/bin/bash
########## 以上是脚本内容###
sh test.sh看结果
可执行
shell基础
Shell命令脚本。
尾数 或:seq
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M