[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Multi line comment
From: |
Greg Wooledge |
Subject: |
Re: [Help-bash] Multi line comment |
Date: |
Mon, 24 Sep 2018 10:20:21 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
On Mon, Sep 24, 2018 at 10:15:21AM -0400, Jerry wrote:
> I am sort of new to using Bash. Bash apparently does not have a built in
> multi line comment feature like in C. I Googled and discovered quite a few
> methods. I was wondering what is the preferred method by bash gurus.
The preferred method is to put # on each line.
# This is a comment.
# It spans several lines.
# Because I had a lot to say.
Really, don't try to be "clever". This is a shell script. Keep it simple.