涩涩屋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外包服務
二維碼 關閉
主站蜘蛛池模板: 九九免费视频 | 中文字幕乱老女人视频 | 免费大全| 久久精品亚洲成在人线av网址 | 国产一区二区不卡亚洲涩情 | 国产精品一区二区三区99 | 午夜激情307| 亚洲视频一区 | 国产露脸 | 久久国产精品免费一区二区三区 | 国产成人精品人人2020视频 | 夜色资源站www国产在线观看 | 2020国产精品香蕉在线观看 | 宅男噜噜66国产精品观看 | 午夜久久久 | 国产18禁黄网站禁片免费观看 | 无码精品每日更新精品久久久 | 国产精品99久久久久久董美香 | 日韩av一区二区在线观看 | 东北露脸46熟妇ⅩⅩXX | 一区二区三区免费在线视频 | 特级做爰图片 | 18无遮挡啪啪无码网站免费看 | 一区二区视频免费 | 牛牛视频精品一区二区不卡 | 国产欧美日韩精品一区二区被窝 | 99精品网站 | 国产精品一级毛片无码老人 | 青青草社区 | 亚洲高清精品50路 | 精品久久久久久久久久久院品网 | 国产亚洲精品无码成人蜜臀 | 超碰免费久久 | av网免费观看 | 日韩中文字幕永久 | 四虎成人精品在永久在线 | 国产免费人成视频网站在线18 | 欧美牲交a欧美牲交aⅴ免费 | 91欧美一区二区三区综合在线 | 午夜激情福利视频 | AV中文字幕一区人妻 |