Skip to content
Kate Ward edited this page Aug 4, 2017 · 1 revision

How can I add newlines into the string of FLAGS_HELP (the custom usage description) variable? You can do so with a here document. E.g.,

FLAGS_HELP=$(cat <<EOF
USAGE: $0 [flags] command
commands:
  backup:    snapshot, and then take backups of the snapshots
  snapshot:  take snapshots of all the filesystems
EOF
)
Clone this wiki locally