Linux Bash Commands Shell Scripts Multiple Line Comments

Adding Multiple Line Comments in Shell Scripts for Linux Commands

This article describes how to add multiple line comments in shell scripts for Linux/Bash commands.

Shou Arisaka
1 min read
Oct 3, 2025

Comment example

: << EOT
foo
bar
foo
bar
EOT

Example of comment and output Useful when outputting ASCII art.

cat << EOT
foo
bar
foo
bar
EOT

Share this article

Shou Arisaka Oct 3, 2025

๐Ÿ”— Copy Links