Y1111111少妇影院_狠狠色综合图区_日韩毛片视频_亚洲熟妇av一区二区三区浪潮_xxx麻豆_69精品久久久久9999不卡片

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外包服務
二維碼 關閉
主站蜘蛛池模板: 蜜桃麻豆WWW久久囤产精品 | 日韩精品免费在线观看 | 久久人人97超碰人人澡国产 | 91看片. | 亚洲精品短视频 | 四虎国产视频 | 精品国产免费久久久久久尖叫 | 男女做爰裸体猛烈吃奶摸视频 | 色狠狠色噜噜噜影音先锋 | 欧美性巨大╳╳╳╳╳高跟鞋 | 借宿被黑人侵犯bd在线观看 | 92自拍视频 | 国产浪潮AV性色四虎 | 成人一区二区三 | 免费一区二区无码东京热 | 国产视频二区三区 | 色姑娘天天综合网 | 深夜视频在线免费 | 玩爽少妇人妻系列 | 久久久久久久毛片 | 自拍日韩动漫欧美 | 无码人妻丰满熟妇片毛片 | 99最新国产精品精品视频 | 国产在线无码视频一区 | 国产精品久久久久久无人区 | 欧美性淫爽ww久久久久无 | 唯美xart系列在线播放 | 久久综合无码中文字幕无码ts | av在线不卡免费看 | 久久激情欧美 | 亚洲精品一区二区三区蜜桃下载 | 国产精品无码免费播放 | 成年人精品视频在线观看 | 污网站在线看 | 正在播放日韩欧美一页 | 铠甲勇士第一部52集全 | 亚洲成色777777女色窝 | 玩两个丰满老熟女在线视频 | 在线观看中文无码最新视频 | www.com亚洲| 亚洲av成人综合网 |