w_ro6a
Last Updated: January 09, 2018
·
2.716K
· barnettjw

Multi-line Comments for Bash

Multi-line comments are great for troubleshooting scripts, you can use in bash here-docs as a way to simulate multi-line comments.

<<'multi-line-comment-1'
line 1
line 2
'multi-line-comment-1'

The quotes are required to disable variable substitution inside a heredoc