1. 单行注释
众所周知,# 比如想要注释:echo “ni”
# echo "ni"
2. 多行注释:
法一:
: << !
语句1
语句2
语句3
语句4
!
例如:
linux101:/home/wsj # sh dian
ni
ni
ni
ni
ni
ni
linux101:/home/wsj # more dian
#!/bin/ksh
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
:<<!
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
!
法二:
: '
语句1
语句2
语句3
语句4
'
例如:
linux101:/home/wsj # sh dian
ni
ni
ni
ni
ni
ni
linux101:/home/wsj # more dian
#!/bin/ksh
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
: '
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
echo "ni"
'
作者:虚生 出处:https://www.cnblogs.com/dylancao/ 以音频和传感器算法为核心的智能可穿戴产品解决方案提供商 ,提供可穿戴智能软硬件解决方案的设计,开发和咨询服务。 勾搭热线:邮箱:1173496664@qq.com weixin:18019245820 市场技术对接群:347609188 |