Shell Script Put Multiple Line Comments under Bash/KSH

Originally published at:

I would like to use multiline comments under shell script. Under C / C++ I can use the following format:
my c code
comment # 2
foo bar


How do I put multi line comment under a shell script? Can you tell method to set multiline shell script comments?

As far as I know, you cannot.
a trick can be using a “:” statement, like here:

my code
my code
: '
everythig here isnot executed
my code
my code

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki