![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flat File in HP-UX | Krishnaramjis | Shell Programming and Scripting | 0 | 06-02-2008 08:24 PM |
| How do I extract text only from html file without HTML tag | los111 | UNIX for Dummies Questions & Answers | 4 | 11-28-2007 01:40 AM |
| Help with a Flat File!!! | kumarsaravana_s | Shell Programming and Scripting | 11 | 06-07-2007 08:15 PM |
| XML to flat file | balireddy_77 | Shell Programming and Scripting | 2 | 04-13-2007 02:57 AM |
| Need help to convert Flat file to HTML | getdpg | Shell Programming and Scripting | 11 | 12-19-2006 11:09 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Flat File to HTML
Is there a Unix product or command that can convert a flat file to an hTML document?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
I don't think so, how do you expect a program to covert your thoughts to HTML code ? I mean, it would be impossible for a program to decide where to put HTML tags, besides the obvious <br> and <nbsp>
|
|
#3
|
||||
|
||||
|
You can make a quick-and-dirty HTML document containing preformatted text from your text file, e.g.:
Code:
{
print "<html><head><title>My Title Here<title></head><body><pre>"
cat file.txt
print "</pre></body></html>"
} > file.html
|
||||
| Google The UNIX and Linux Forums |