I copied the following from a website.
-------------------------
#!/bin/bash
# make_page - A script to produce an HTML file
echo "<HTML>"
echo "<HEAD>"
echo " <TITLE>"
echo " The title of your page"
echo " </TITLE>"
echo "</HEAD>"
echo ""
echo "<BODY>"
echo " Your page content goes here."
echo "</BODY>"
echo "</HTML>"
----------------------------------------------------
The above has rewritten in the following manner.
#!/bin/bash
# make_page - A script to produce an HTML file
cat << _EOF_
<HTML>
<HEAD>
<TITLE>
The title of your page
</TITLE>
</HEAD>
-----------------------------------------------
My question is on the words 'cat ' and ' _EOF_ .
What are they? I believe this strange ' _EOF_ ' means end of the file.
I know the 'cat' command in Linux. If you wrote a text file, you could read it using the 'cat' command.
I can't take in the ' cat ' and _EOF_ in this program.
Could you please tell me about them?
<BODY>
Your page content goes here.
</BODY>
</HTML>
_EOF_
-------------------------
#!/bin/bash
# make_page - A script to produce an HTML file
echo "<HTML>"
echo "<HEAD>"
echo " <TITLE>"
echo " The title of your page"
echo " </TITLE>"
echo "</HEAD>"
echo ""
echo "<BODY>"
echo " Your page content goes here."
echo "</BODY>"
echo "</HTML>"
----------------------------------------------------
The above has rewritten in the following manner.
#!/bin/bash
# make_page - A script to produce an HTML file
cat << _EOF_
<HTML>
<HEAD>
<TITLE>
The title of your page
</TITLE>
</HEAD>
-----------------------------------------------
My question is on the words 'cat ' and ' _EOF_ .
What are they? I believe this strange ' _EOF_ ' means end of the file.
I know the 'cat' command in Linux. If you wrote a text file, you could read it using the 'cat' command.
I can't take in the ' cat ' and _EOF_ in this program.
Could you please tell me about them?
<BODY>
Your page content goes here.
</BODY>
</HTML>
_EOF_