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
Written by James Barnett
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Linux
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#