Block comments in bash script

0

I need to comment on a block of code and found the following way it worked:

<<COMENTÁRIO
meus comentários aqui...
...
COMENTÁRIO

I would like to know if this is the correct way to do this, I read it on a website and said that the shell actually ignores this string because it is not being used, as if it were a comment but it really is not. / p>

I've tried it too

<# comentários aqui..#>

-*- comentários aqui.. -*-

:'
Comentários aqui..
'

But none of it worked out.

    
asked by anonymous 12.09.2018 / 00:45

1 answer

2

There was a space between the characters of the first line in the following option:

: '
Comentarios aqui..
'
    
12.09.2018 / 00:56