涩涩屋av_久久久久久美女精品啪啪_国产精品线在线精品_老熟妻内射精品一区_亚洲成人va_99久久精品久久久久久

IT之道-艾銻知道

您當前位置: 主頁 > 資訊動態 > 艾銻分享 >

服務器維護shell 腳本中的注釋詳解


2020-07-06 21:12 作者:admin

服務器維護shell 腳本中的注釋詳解

服務器維護小知識 單行注釋:
  單行注釋就比較簡單了,直接在行最前端加上符號 # 即可。具體用法如下所示:
# this is comment test
echo "this is comment test"
  運行結果:
?  comment git:(master) ? sh comment.sh
this is comment test
多行注釋:
  多行注釋有很多方法,這里就列舉幾個常用的
服務器維護小知識1 eof截止符
  eof截止符不但可以用作后續輸入命令,還可以用作注釋,常用用法:開始注釋部分:輸入::<<eof 結束部分:eof
  具體示例如下所示:
# echo is test
echo "test"
echo "test"
echo "test"
echo "test"
echo "test"
:<<eof
echo "comment"
echo "comment"
echo "comment"
echo "comment"
echo "comment"
echo "comment"
eof
  運行結果:
?  comment git:(master) ? bash comment.sh
test
test
test
test
test
 
服務器維護小知識2 感嘆號
  !號一般作為嵌入內容部分,可以用作注釋,常用用法:開始注釋部分:輸入::<<! 結束部分:!
  具體示例如下所示:
# echo is test
echo "test"
echo "test"
echo "test"
echo "test"
echo "test"
:<<!
echo "comment"
echo "comment"
echo "comment"
echo "comment"
echo "comment"
echo "comment"
!
  運行結果:
?  comment git:(master) ? bash comment.sh
test
test
test
test
test
服務器維護小知識3 逗號
  逗號一般作區分內容,也可以用作注釋,常用用法:開始注釋部分:輸入:: ' 結束部分:' (注意,逗號和冒號之間要加空格)
  具體示例如下所示:
# echo is test
echo "test"
echo "test"
echo "test"
echo "test"
echo "test"
: '
echo "comment"
echo "comment"
echo "comment"
echo "comment"
echo "comment"
echo "comment"
'
  運行結果:
?  comment git:(master) ? bash comment.sh
test
test
test
test
test
IT運維  我們選擇北京艾銻無限
以上文章由北京艾銻無限科技發展有限公司整理
 

相關文章

IT外包服務
二維碼 關閉
主站蜘蛛池模板: 制服丝袜中文字幕在线播放 | 国产69精品久久久久777 | 国产精品成人VA在线播放 | 亚洲综合视频在线观看 | 91精品啪在线观看国产商店 | 精品成人国产 | zzzwww免费观看视频 | 精品国产乱码久久久久久蜜臂 | 日本成本人三级在线观看 | 97pao国产成视频永久免费 | 国产精品无码专区第一页 | 337p日本大胆欧美人 | 51久久久| 国产人成尤物在线免费观看 | 亚洲精品aa | 国产美女精品在线观看 | 国产白白白在线永久播放 | 99爱爱视频 | 亚洲大尺度专区无码浪潮AV | 日韩中文字幕免费观看 | 久久黄色视 | 精品网站在线 | xxxxfree少妇过瘾 | 亚洲成人网站在线观看 | 九九视频在线观看黄 | 国产精品午夜久久久久久99热 | 欧美一性一交一乱 | 国产人成尤物在线免费观看 | 97国产精品久久久久久 | 国产孕妇视频在线播放 | 久久久99免费视频 | 东京道一本热中文字幕 | 日本天堂一区二区 | 91视频国内 | 18禁超污无遮挡无码免费网站国产 | 99香蕉国产精品偷在线观看 | 365天天色综合网 | 99成人在线 | 成人免费乱码大片a毛片软件 | 欧美性猛交xx乱lloi | 久久久久久夜精品精品免费啦 |