shell 多行注释

shell 多行注释

20191017


学习一下shell脚本中多行注释的方法

  • 方法一
:<<!
#被注释的内容   
!
  • 方法二
:'
#被注释的内容
'
  • 方法三
if false;then
#被注释的内容
fi
  • 方法四
:<<任意字符或者数字

#被煮熟的内容

任意字符或者数字
  • 方法五
((0)) && {
#被注释的内容
}

参考

参考文章

原文地址:https://www.cnblogs.com/damahuhu/p/11694054.html