Debian Codegraph @

ex71a.sh

raw symbols SCIP
1 #!/bin/bash
2 # Same as previous example, but...
3
4 # The - option to a here document <<-
5 #+ suppresses leading tabs in the body of the document,
6 #+ but *not* spaces.
7
8 cat &lt;&lt;-ENDOFMESSAGE
9 This is line 1 of the message.
10 This is line 2 of the message.
11 This is line 3 of the message.
12 This is line 4 of the message.
13 This is the last line of the message.
14 ENDOFMESSAGE
15 # The output of the script will be flush left.
16 # Leading tab in each line will not show.
17
18 # Above 5 lines of "message" prefaced by a tab, not spaces.
19 # Spaces not affected by <<- .
20
21 # Note that this option has no effect on *embedded* tabs.
22
23 exit 0