LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-22-2011, 03:00 AM   #1
vesskrishna
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
Unhappy How to take the data from a strings in a file and output them as the HTML using perl


How to take the data from a strings in a file and output them as the HTML using perl. Using txt2html is not okay for my project. Could someone please help me with a script. THANKS IN ADVANCE.
 
Old 11-22-2011, 03:51 AM   #2
salemhouda
LQ Newbie
 
Registered: Nov 2011
Posts: 8

Rep: Reputation: Disabled
Can you send a sample file (data) and the html output that you want.
 
Old 11-22-2011, 04:00 AM   #3
vesskrishna
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thanks for the response.Here is what I am trying for.

I have a text file like by name students.txt which looks like



sno name city phone
------------------------------------------------------
1. john NY 34234234
2. sam NJ 87979797



Now I want this to look like a table in HTML format type. Kindly help me. Thanks in advance.
 
Old 11-22-2011, 04:20 AM   #4
vesskrishna
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Post

Hi Here are the files attached. That sort of output is required.sample.txt

Click image for larger version

Name:	sample.jpg
Views:	6
Size:	15.0 KB
ID:	8453
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Methods for extracting data strings from output files Feynman Programming 62 08-24-2010 10:12 PM
Perl: Read a html file and output it... JoeBleaux Programming 3 04-03-2009 08:54 AM
looking for a perl script to convert html table data into a csv file swiftguy121 Linux - Software 2 04-25-2007 08:28 PM
How to read HTML or TXT file and output the data? koolkicks311 Programming 1 04-21-2007 12:13 AM


All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration