Html code in shell script..........

Solved/Closed
deepgupta
Posts
1
Registration date
Sunday July 27, 2008
Status
Member
Last seen
July 28, 2008
- Jul 28, 2008 at 12:35 PM
 Kanishka Dutta - Apr 29, 2011 at 01:21 AM
Hello,
I want to share one of article of a recent magazine to write html code in shell script..........
<html>
<head>
<title>any title</title>
</head>
<body>
Our content information goes here
</body>
</html>

this is written in shell script as
#!bin/bash
#create_page - This script will produce on HTML file
cat <<- _EOF_
<html>
<head>
<title>any title</title>
</head>
<body>
Our content information goes here
</body>
</html>
_EOF_

2 replies

Jean-François Pillou
Posts
18668
Registration date
Monday February 15, 1999
Status
Webmaster
Last seen
January 12, 2022

Jul 29, 2008 at 12:52 PM
Thanks for this post !
20
Kanishka Dutta
Apr 29, 2011 at 01:21 AM
Thanks a bunch for such an easy example
2