help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Multi line comment


From: Jesse Hathaway
Subject: Re: [Help-bash] Multi line comment
Date: Mon, 24 Sep 2018 09:39:06 -0500

> 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.

I agree with Greg, a plugin like
https://github.com/tomtom/tcomment_vim for vim can help
make the task less arduous.

On Mon, Sep 24, 2018 at 9:20 AM Greg Wooledge <address@hidden> wrote:
>
> 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.
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]