最新日韩欧美在线综合网_成人在线视_自拍偷拍第八页_欧美又大又粗又硬又色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小说最新在线观看网址 | 粉嫩少妇内射浓精VIDEOS | 久久久久久久久久久高潮 | 女人被强╳到高潮喷水在线观看 | 欧美猛交 | 久久夜色精品国产嚕嚕亚洲av | 爽灬爽灬好深灬免费视频 | 欧美一区2区三区4区公司二百 | 亚洲乱码国产乱码精品精98午夜 | 正在播放国产多P交换视频 午夜影院在线观看视频 | 成人福利在线视频 | a级毛片免费视频网站 | 在线中文字幕-区二区三区四区 | 国产三级毛片在线 | 影音先锋在线资源中文字幕 | 日韩视频在线观看不卡 | 久久国产操 | 最新国产精品视频 | 国产成人在线视频免费观看 | 欧洲av免费看 | 欧美bbbbb性bbbbb视频 | 性av网址| 国产精品自在自线 | 一区二区三区产品免费精品久久75 | 国产男女猛烈无遮挡免费视频 | 日韩中文幕 | 亚洲AV一般男女在线 | 国产精华液一线二线三线 | www亚洲com | 亚洲人成7777 | 欧美日韩日日夜夜 | 伊久在线| 久草影视在线观看 | JAPANESEVIDEOS中国少妇 | 久久99亚洲精品 | 日韩精品人妻无码久久影院 | 亚洲精品在线一区二区 | 扒开老女人p大荫蒂视频 | 无码国内精品人妻少妇蜜桃视频 |