linux shell的单行多行注释
生活随笔
收集整理的這篇文章主要介紹了
linux shell的单行多行注释
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.單行注釋,使用符號#
echo "123456"echo "test"#echo "comment“2. 多行注釋
(1)使用 :<<!? !
filename=test.txt :<<! fileContent=`cat $filename`i=0 for line in $fileContent dofileList[$i]=$line((++i)) done!
(2) 使用語句 if false then fi
echo "0:" if false thenecho "1:"echo "2:"echo "3:" fi echo "4:"?
轉載于:https://www.cnblogs.com/sssblog/p/10143138.html
總結
以上是生活随笔為你收集整理的linux shell的单行多行注释的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 梦到田螺吸在自己身上是什么意思
- 下一篇: 梦到和对象结婚是什么意思