Last Updated: January 28, 2019
·
4.355K
· 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