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外包服務
二維碼 關閉
主站蜘蛛池模板: 级毛片内射视频 | 少妇BBW搡BBBB搡BBBB | 我趁老师睡觉偷偷的脱她内裤 | 在线观看第一页 | 国产精品嫩草影院久久 | 小婕子伦流澡到高潮H | 中文字幕视频在线看 | 2018高清一道国产 | 麻豆av在线免费看 | 成年轻人网站色直接看 | 美女又大又黄www免费网站 | 亚洲色欧美色2019在线 | 欧美综合日韩 | 亚洲av永久无码精品一百度 | 精品国产乱码aaa一区二区 | 推油少妇久久99久久99久久 | 免费无码鲁丝片一区二区 | 被部长肉体侵犯中文字幕 | 俄罗斯女人与性动交 | 一级黄色网片 | 少妇人妻偷人精品无码视频新浪 | 国产国产国产国产系列 | 欧洲美熟女乱又伦AV | 久久99国产综合精合精品 | 亚洲人成网站在线无码 | 暖暖视频在线观看免费 | 国产成人情侣激情小视频 | 天堂网WWW天堂在线 国产东北肥熟老胖女 | 亚州精品av久久久久久久影院 | 在线播放偷拍一区精品小说 | 四虎家庭影院 | 欧美三级不卡在线播放 | 老色鬼永久视频网站 | 亚洲和欧洲一码二码区别7777 | 美女禁区A级全片免费观看 波多野结衣免费观看视频 免费又黄又裸乳的视频 | 亚洲V国产V欧美V久久久久久 | 小荡货腿张开让我cao视频 | 中文亏日产幕无线码一区 | 亚洲乱码中文字幕综合234 | 亚洲色欲或者高潮影院 | 免费日本黄色片 |