Solved

turning a file into a table

Posted on 1998-12-29
6
142 Views
Last Modified: 2010-03-05
Is there anyway that I can take a raw file and spit it out on an HTML page.  ie. I want it to have headings for each field.  

CODE        DATE    MAKER    CHECKER   COMMENTS
Evaap16481  981105  billy    rsmith    shutdown
Evaap16557  981110  tonym    phild     n/a
Evaap16563  981124  larryf   rsmith    can't add secondary


That is what I want the output to look like. The headings are not part of the file.
0
Comment
Question by:clearcase
6 Comments
 
LVL 4

Expert Comment

by:martinag
Comment Utility
How do you specify the format (how do you know the headings, where do columns start and end?

Martin
0
 

Expert Comment

by:saij
Comment Utility
Perhaps you could give us an example of the file - a few records....
0
 

Author Comment

by:clearcase
Comment Utility
Edited text of question
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

Author Comment

by:clearcase
Comment Utility
Adjusted points to 100
0
 
LVL 5

Accepted Solution

by:
b2pi earned 100 total points
Comment Utility
Always check CPAN first....

Take a look at

http://perl.com/cgi-bin/cpan_mod?module=Data::ShowTable

which will absolutely _not_ do your dishes.
0
 

Expert Comment

by:spreq
Comment Utility
describe the format of your file... ascii plain text??
like this one?:
 
Evaap16481|981105|billy|rsmith|shutdown
Evaap16557|981110|tonym|phild|n/a
Evaap16563|981124|larryf|rsmith|can't add secondary
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
perl exit code 2 243
Existing perl code to be changed for ftp to sftp handling 14 130
hard perl script 16 146
Perl script to parse xml file 2 96
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now