shell脚本中的多行注释

 

001、

[root@pc1 test01]# ls
a.sh
[root@pc1 test01]# cat a.sh        ## 测试脚本
#!/bin/bash
: "                                ## 冒号和双引号之间有一个空格(也可以是单引号)
xxxxxxx
yyyyyyyyyyy                         ## 注释内容
zzzzzzzz
"

((sum = 8 + 9 + 4 ))
echo $sum
[root@pc1 test01]# bash a.sh       ## 运行程序
21

。 

 

posted @ 2023-10-08 23:04  小鲨鱼2018  阅读(213)  评论(0编辑  收藏  举报