Solved

turning a file into a table

Posted on 1998-12-29
6
143 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
ID: 1207216
How do you specify the format (how do you know the headings, where do columns start and end?

Martin
0
 

Expert Comment

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

Author Comment

by:clearcase
ID: 1207218
Edited text of question
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:clearcase
ID: 1207219
Adjusted points to 100
0
 
LVL 5

Accepted Solution

by:
b2pi earned 100 total points
ID: 1207220
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
ID: 1207221
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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 is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

932 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

18 Experts available now in Live!

Get 1:1 Help Now