Block Comments in a Shell Script

后端 未结 12 1224
小鲜肉
小鲜肉 2020-12-02 03:36

Is there a simple way to comment out a block of code in a shell script?

12条回答
  •  无人及你
    2020-12-02 04:10

    Use : ' to open and ' to close.

    For example:

    : '
    This is a
    very neat comment
    in bash
    '
    

    This is from Vegas's example found here

提交回复
热议问题