![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to auto update html page | RohitKJ | Web Programming, Web 2.0 and Mashups | 2 | 07-30-2009 11:21 AM |
| HTML file in the mailbody | Swapna173 | UNIX for Dummies Questions & Answers | 3 | 08-26-2008 12:31 PM |
| help with splitting a html file up | jeroen234 | Shell Programming and Scripting | 3 | 06-22-2008 04:26 AM |
| How do I extract text only from html file without HTML tag | los111 | UNIX for Dummies Questions & Answers | 4 | 11-28-2007 04:40 AM |
| Flat File to HTML | randerson | UNIX for Dummies Questions & Answers | 2 | 02-09-2007 10:37 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
HTML file update!!!
Hello all, Code:
Login.html
<html>
<head>
<title></title>
</head>
<body>
<div class="MainColumn">
<h1>Login</h1>
<p>Add text here!!
</p>
</div>
</body>
</html>
message.txt Code:
Please visit after one hour!!! Now I want to replace the contents inside <div> tag ie. "Add text here" with the contents inside message.txt so that the updated html file looks like this below: Code:
<html>
<head>
<title></title>
</head>
<body>
<div class="MainColumn">
<h1>Login</h1>
<p>
Please visit after one hour!!!</p>
</div>
</body>
</html>
Can we do this using sed or awk?Can anyone help me on this? Last edited by dave_nithis; 08-26-2009 at 09:09 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|