01-21-2010
Is it possible to convert text file to html table using perl
Hi,
I have a text file say file1 having data like
ABC c:/hm/new1 Dir
DEF d:/ner/d sd
......
So i want to make a table from this text file, is it possible to do it using perl.
Thanks in advance
Sarbjit
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies
2. Shell Programming and Scripting
Dear Yogesh..."Convert XML file into TEXT file using PERL seript"... can u help me regarding this issue...plz
Thanks
Rudro (0 Replies)
Discussion started by: Rudro
0 Replies
3. Shell Programming and Scripting
I am trying to generate a report with below file :
File1 :
EQADM,edrtere9-phys,8122caef0,gpatmon,/bin/ksh,nuten Erick
EQADM,edrtere11-phys,8227caef0,gpatmon,/bin/ksh,nuten Erick
EQADM,edrtere3-phys,822caef0,gpatmon,/bin/ksh,nuten Erick
can you help me convert it to html and add... (9 Replies)
Discussion started by: sriram003
9 Replies
4. Shell Programming and Scripting
hi ,
i need to create a bash shell script that insert a text data file into an html made table, this table output has to mailed.I am new to shell scripting and have a very minimum idea of shell scripting.
please help. (9 Replies)
Discussion started by: intern123
9 Replies
5. Shell Programming and Scripting
Hi,
I have script which generates the output as below:
Jobname Date Time Status
abc 12/9/11 17:00 Completed
xyz 13/9/11 21:00 Running
I have the output as a text file. I need to convert it into a HTML Table and sent it thru email
... (6 Replies)
Discussion started by: a12ka4
6 Replies
6. Shell Programming and Scripting
Hi ,
I need an help in perl scripting.
I have an perl script written and i have an for loop in that ,where as it writes some data to a file and it has details like below.
cat out.txt
This is the first line
this is the second line.
.....Now, this file needs to be send in mail in HTML... (2 Replies)
Discussion started by: scott_cog
2 Replies
7. Shell Programming and Scripting
Please provide script/commands to convert text file to HTML tabular format.
No need of styles and colours, just output and a heading in table is required.
Output file will be send via email and will be seen from outlook.
(script required without using awk).
output file content: (sar... (7 Replies)
Discussion started by: Veera_V
7 Replies
8. Shell Programming and Scripting
Hello Everyone,
I have a sample file raw.txt as shown below :
Drive Bays
Bay Name : SD-2C
Number of Standby Power Supplies : 4
Number of Drive Enclosures : 12
Summary Status of Contained Modules
All... (6 Replies)
Discussion started by: rahul2662
6 Replies
9. UNIX for Dummies Questions & Answers
Hi all
I need help converting a text file into a html table in bash and I need to email this table. The text file looks like the below. Two columns with multiple rows. Top row being header.
Application Name Application Status
Application 1 Open
Application 2 ... (2 Replies)
Discussion started by: hitmanjd
2 Replies
10. Shell Programming and Scripting
My concnern related to the post
-Convert shell script output txt file to html table,
in this how to print the heading as color.
awk 'BEGIN{print "<table>"} {print "<tr>";for(i=1;i<=NF;i++)print "<td>" $i"</td>";print "</tr>"} END{print "</table>"}' <filename> (8 Replies)
Discussion started by: sarajobmai
8 Replies
LEARN ABOUT DEBIAN
test::dir
Test::Dir(3pm) User Contributed Perl Documentation Test::Dir(3pm)
NAME
Test::Dir - test directory attributes
SYNOPSIS
use Test::More ...;
use Test::Dir;
DESCRIPTION
This modules provides a collection of test utilities for directory attributes. Use it in combination with Test::More in your test
programs.
FUNCTIONS
dir_exists_ok(DIRNAME [, TESTNAME] )
Ok if the directory exists, and not ok otherwise.
dir_not_exists_ok(DIRNAME [, TESTNAME] )
Ok if the directory does not exist, and not ok otherwise.
dir_empty_ok(DIRNAME [, TESTNAME] )
Ok if the directory is empty (contains no files or subdirectories), and not ok otherwise.
dir_not_empty_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not empty, and not ok otherwise.
dir_readable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is readable, and not ok otherwise.
dir_not_readable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not readable, and not ok otherwise.
dir_writable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is writable, and not ok otherwise.
dir_not_writable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not writable, and not ok otherwise.
dir_executable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is executable, and not ok otherwise.
dir_not_executable_ok(DIRNAME [, TESTNAME] )
Ok if the directory is not executable, and not ok otherwise.
TO DO
I know there are a lot more directory attributes that can be tested. If you need them, please ask (or better yet, contribute code!).
AUTHOR
Martin 'Kingpin' Thurn, "mthurn at cpan.org", <http://tinyurl.com/nn67z>.
BUGS
Please report any bugs or feature requests to "bug-test-dir at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Dir>. I will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Dir
You can also look for information at:
o RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Dir>
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Test-Dir>
o CPAN Ratings
<http://cpanratings.perl.org/d/Test-Dir>
o Search CPAN
<http://search.cpan.org/dist/Test-Dir>
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright (C) 2007-2008 Martin 'Kingpin' Thurn
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-03-05 Test::Dir(3pm)