The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 02-08-2007
Registered User
 

Join Date: Feb 2007
Posts: 1
Flat File to HTML

Is there a Unix product or command that can convert a flat file to an hTML document?
Reply With Quote
Forum Sponsor
  #2  
Old 02-09-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
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>
Reply With Quote
  #3  
Old 02-09-2007
Glenn Arndt's Avatar
Anomalous Lurker
 

Join Date: Feb 2006
Location: Indianapolis, IN
Posts: 255
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
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0