w_ro6a
Last Updated: February 25, 2016
·
1.429K
· barnettjw
43ea08b4fc547e8a5da87c207bea2123

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

Say Thanks
Respond
Filed Under