亚洲成a人片在线观看www_二区免费视频_免费在线观看毛片_国产精品www爽爽爽视频_国产一区av在线_区美毛片

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外包服務
二維碼 關閉
主站蜘蛛池模板: a级高清免费毛片av播放 | 色视频在线观看视频 | 久久精品一区二区三区四区毛片 | 久久久精品视频免费观看 | a毛片国产 | 性生大片一级毛片免费观看 | 国产良心大作白丝精厕 | 国产的一级片 | 91成人在线播放 | 337P大胆日本欧美人体艺术噜噜噜 | aa级黄色毛片 | 一区二区三区四区在线免费观看 | 国产一区在线精品 | 三级国产三级在线 | 婷婷中文网| 高h猛烈失禁潮喷无码视频 JIZZJIZZ国产精品久久 | 6精品国产乱码久久久久久 羞辱尤娜3中文版 | 亚洲黄色免费网站 | 99精品自产国偷产在线 | 国产日本视频一区二区 | 国产亚洲第一精品综合Av | 97国产免费 | 亚洲色大成网站www久久九九 | 久久xxxx | 成人性生交a做片 | 国产美女视频一区 | 国产一区 精品 | 成人aaaa免费全部观看 | 亚洲国产综合精品中文第一 | 九九精视频 | 久草热这里有精品6 | 亚洲一区二区三区偷拍女厕 | 国产成人综 | 国产精品麻花传媒二三区别 | 成人免费国产精品视频大全 | 久久精品99国产精品日本 | 国产网红福利视频一区二区 | 香蕉大伊亚洲人在线观看 | 色WWW视频永久免 | 欧美午夜精品久久久久久人妖 | www.色91 |