91av免费观看_日韩视频在线免费看_日本xxxx色视频在线观看免费_伊人222综合网图片_国产二区三区在线_91麻豆麻豆

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乱码一区二区三区香蕉 | 品色堂永远的免费论坛 | 邻居少妇水好多好紧 | 久久久久成人片免费观看蜜芽 | 欧美国产成人激情视频在线观看 | 688欧美人禽杂交狂配 | 在线看午夜福利片国产 | 久久久久无码专区亚洲AV | 免费无码百合真人片18禁 | 国产精品不卡一卡二卡 | 自拍偷自拍亚洲精品情侣 | 亚洲欧美18v中文字幕高清 | 亚洲AV成人一区二区三区观看在线 | 小雪好紧好滑好湿好爽视频 | 无码AV人片在线观看天堂 | 欧美麻豆精品久久久久久 | 中文成人精品久久一区 | 女人18毛片水真多免费视频 | 国产成人情侣激情视频 | 把腿张开看老子臊烂你免费 | 欧美日韩激情视频在线观看 | 亚洲精品国产成人99久久6 | 色婷婷精品久久二区二区我来 | 国产精品白丝喷浆 | 免费人成激情视频在线观看 | 欧美成人aaa片一区国产精品 | 人妻被按摩到潮喷无码日本 | 1000部啪啪未满十八勿入不卡 | 亚洲人成网站在线播放大全 | 国产美女高潮流白浆免费观看 | 亚洲社区在线观看 | 亚洲女初尝黑人巨高清 | 特级毛片www| 开心综合激激的五月天的 | 久久精品亚洲中文字幕无码网站 | 成人做爰高潮片免费看古代小说 | 久久天天躁狠狠躁夜夜AV浪潮 | 欧美综合影院 | 老熟女草BX×|