Multi-line comments in a bash shell script
Posted by jpluimers on 2016/10/18
I’m used to multiline comments in many languages, but since I don’t use bash very often, I only recently learned it can do that too.
So this is how to have comments span multiple lines in bash by using the : command which according to the bash man page does nothing:
No effect; the command does nothing beyond expanding arguments and performing any specified redirections. A zero exit code is returned.
So the syntax is:
your comments here