最新日韩欧美在线综合网_成人在线视_自拍偷拍第八页_欧美又大又粗又硬又色A片_亚洲精品国产成人片_一级片手机在线

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制服丝袜日韩高清 | 黑人狂虐中国人妻陈艳 | 中文字幕在线观看91 | 成人在线观看免费视频 | 国语对白一区二区 | 国精产品999国精产品官网 | 国产无码不卡一区二区 | 最新精品久久 | 国产激情视频一区二区三区 | 她似遥上月短剧免费观看 | 亚洲成AV人片天堂网久久 | 欧美日韩国产人妻无码 | 91嫩草久久久精品影院 | 99re6热在线精品视频观看 | 99国产精品粉嫩初高生在线播放 | 色成人av | 国产成人免费视频在线网站2 | 国产在线精品91国自产拍免费 | 欧美精品久久久久久 | 国产三极片在线观看 | 亚洲a∨无码一区二区 | aaaaaa欧美 | 啊灬啊灬别停啊灬用力啊免费 | 国产欧美日韩一区综合在线视频免费 | 久一视频在线观看 | 亚洲AV无码一区二区三区国产 | 欧美视频亚洲视频 | 精品无码AV无码免费专区 | 性色一区二区三区 | 国产精品美女一区二区三区 | 日韩伦理亚洲一区 | 粉嫩高中生的第一次 | 曰韩无码AV一区二区免费 | 久久国产精品谷原希美 | 欧美成人高清在线 | jizz老师喷水 | 夜夜高潮夜夜爽夜夜爱爱一区 | 少妇内射视频播放舔大片 | 欧美精品一区二区三区一线天视频 |