国产三区四区_亚洲精品国产精品色欲AV_青青操av在线_黄的网站在线观看_中文字幕无码无遮挡在线看_日韩精品中文字幕吗一区二区

中國專業(yè)IT外包服務(wù)

用心服務(wù)每一天
IT之道-艾銻知道

您當(dāng)前位置: 主頁 > 資訊動態(tài) > 艾銻分享 >

服務(wù)器維護(hù)shell 腳本中的注釋詳解


2020-07-06 21:12 作者:admin

服務(wù)器維護(hù)shell 腳本中的注釋詳解

服務(wù)器維護(hù)小知識 單行注釋:
  單行注釋就比較簡單了,直接在行最前端加上符號 # 即可。具體用法如下所示:
# this is comment test
echo "this is comment test"
  運行結(jié)果:
?  comment git:(master) ? sh comment.sh
this is comment test
多行注釋:
  多行注釋有很多方法,這里就列舉幾個常用的
服務(wù)器維護(hù)小知識1 eof截止符
  eof截止符不但可以用作后續(xù)輸入命令,還可以用作注釋,常用用法:開始注釋部分:輸入::<<eof 結(jié)束部分: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
  運行結(jié)果:
?  comment git:(master) ? bash comment.sh
test
test
test
test
test
 
服務(wù)器維護(hù)小知識2 感嘆號
  !號一般作為嵌入內(nèi)容部分,可以用作注釋,常用用法:開始注釋部分:輸入::<<! 結(jié)束部分:!
  具體示例如下所示:
# 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"
!
  運行結(jié)果:
?  comment git:(master) ? bash comment.sh
test
test
test
test
test
服務(wù)器維護(hù)小知識3 逗號
  逗號一般作區(qū)分內(nèi)容,也可以用作注釋,常用用法:開始注釋部分:輸入:: ' 結(jié)束部分:' (注意,逗號和冒號之間要加空格)
  具體示例如下所示:
# 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"
'
  運行結(jié)果:
?  comment git:(master) ? bash comment.sh
test
test
test
test
test
IT運維  我們選擇北京艾銻無限
以上文章由北京艾銻無限科技發(fā)展有限公司整理
 

相關(guān)文章

IT外包服務(wù)
二維碼 關(guān)閉
主站蜘蛛池模板: 亚洲狠狠色综合蜜桃 | 国产二区免费视频 | 香蕉啪视频在线观看视频久 | 亚洲W欧洲无码SSS222 | 在线看片一区 | 粉嫩av网| 欧美在线精品一区 | 亚洲精品入口a级 | 啊啊av| 日韩免费av乱码高清专区 | 成人欧美一区二区三区色青冈 | 亚洲影院丰满少妇中文字幕无码 | 久久久久久久久久久高潮 | 香蕉高清永久在线视频 | 国产成人综合在线 | 中文字幕精品乱码中文字乱码 | 国产真实强奷系列在线观看 | 爱999精品视频 | 一级毛片在线免费观看视频 | 天天av天天好逼 | 女生毛片 | 精品国产乱码久久久久久密桃99 | 国产精品激情综合五月天中文字幕 | 美女一二三区 | 成年美女黄网站18禁免费 | 国产精品99久久久久久www | 综合图区亚洲欧美另类图片 | 久草资源视频 | 欧洲国产成人久久精品综合 | 超碰97精品 | av专区在线观看 | 国产十日韩十欧美 | 亚洲色偷偷偷网站色偷一区 | 三级中文字幕在线观看 | 久久久久久久久久久大尺度免费视频 | 美女在线视频一区二区三区 | 亚洲欧洲无码在线观看 | 蜜桃www视频高清在线观看 | 成年免费人性视频 | 亚洲无人区码一码二码三码的含义 | www.av视频在线观看 |