I do not understand why cat gives same output as echo
I do understand example above runs the command line by line until it find the tag EOF used as start from cat <<'EOF'
I am used to use cat as list output of file.
Also some more information on how multi line works. (a google for << does give nothing)
In these examples the cat and echo give the same output but do not work the same. cat contatenates files and prints to standard output. In the example, cat is followed by << which is redirection operator. cat will concatenate all text until the closing label is found. In this case the EOF. echo displays a line of text to standard output.