Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Convert Txt file to HTML table and email Post 302965929 by hitmanjd on Thursday 4th of February 2016 06:05:22 PM
Old 02-04-2016
Convert Txt file to HTML table and email

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.

Code:
Application Name      Application Status
Application 1              Open
Application 2              Open
Application 3              Closed
Application 4              Open
......
......
......15

Any help would be greatly appreciated

Last edited by Don Cragun; 02-04-2016 at 09:12 PM.. Reason: Add CODE tags.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Format txt file as html table

I have a short time to solve a problem, so I need some help. I've searched the forum, but I couldn't find a solution to my problem. I made a script to filter some text and now I have a new requirement to make it available as html table. Problem is that I more than one files with different set... (2 Replies)
Discussion started by: tetreb
2 Replies

2. Shell Programming and Scripting

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 (1 Reply)
Discussion started by: sarbjit
1 Replies

3. Shell Programming and Scripting

Convert shell script output txt file to html table

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

4. UNIX and Linux Applications

Ssmtp -t < /path/to/the/message.txt (How to format message.txt for html email)

ssmtp has been running well under Kubuntu 12.04.1 for plain text messages. I would like to send html messages with ssmtp -t < /path/to/the/message.txt, but I cannot seem to get the message.txt file properly formatted. I have tried various charsets, Content-Transfer-Encoding, rearranging the... (0 Replies)
Discussion started by: Ronald B
0 Replies

5. Shell Programming and Scripting

Need to convert output.txt into html file

I have output.txt file generated through shell scripts which need convert in tabular format using html can you please help me output.txt Token State Date1 Date2 Description Name 34567 open 27/06/13 28/06/13 ... (5 Replies)
Discussion started by: vijay_rajni
5 Replies

6. Shell Programming and Scripting

SQL query output convert to HTML & send as email body

Hi , I have a sql query in the unix script ,whose output is shown below.I want to convert this output to HTML table format & send email from unix with this table as email body. p_id src_system amount 1 A 100 2 B 200 3 C ... (3 Replies)
Discussion started by: jagadeeshn04
3 Replies

7. Shell Programming and Scripting

HTML table in email body using C Shell

I am using Sun Solaris ver. 5.10 and trying to send an HTML table in email body using mail command in C shell script. I tried following commands:- #1 mail -m "MIME-Version: 1.0;Content-type:text/html;charset=UTF-8" receiver@mail.com < file.html #2 mail -m "Content-type: text/html;" -s "This... (4 Replies)
Discussion started by: jnrohit2k
4 Replies

8. Shell Programming and Scripting

Regarding guidance related to HTML table in email body

Hello All, I have a query here. I am sending an HTML table(which I am creating it by a call to REST API, in a LINUX box) and from there I have to send it into an email. So following are the poins on same: As data is not static so it is writing Dynamic data and creating HTML file. There is... (9 Replies)
Discussion started by: RavinderSingh13
9 Replies

9. Shell Programming and Scripting

Convert shell script output txt file to html table

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

10. Shell Programming and Scripting

Postgre Query results as Email HTML table

Hello, I'm trying to send email from Greenplum query results as HTML table with status Red/Green Select Server, Last_Date from Table; Results Server, Last_Date Prod, 2018-04-09 Final email Output in HTML format Server Status LastDate Prod GREEN(BOX) 2018-04-09 (if... (2 Replies)
Discussion started by: krux_rap
2 Replies
CGI
::Application::Plugin::Authentication::Driver::DBIC(3User Contributed Perl DocumentaCGI::Application::Plugin::Authentication::Driver::DBIC(3pm) NAME
CGI::Application::Plugin::Authentication::Driver::DBIC - DBIx::Class Authentication Driver VERSION
Version 0.02 SYNOPSIS
use base qw(CGI::Application); use CGI::Application::Plugin::Authentication; __PACKAGE__->authen->config( DRIVER => [ 'DBIC', SCHEMA => My::DBIC->connect($dsn), # or existing $schema object CLASS => 'Users', # = My::DBIC::Users FIELD_METHODS => [qw(user MD5:passphrase)] ], CREDENTIALS => [qw(auth_username auth_password)], ); DESCRIPTION
This Authentication driver uses the DBIx::Class module to allow you to authenticate against any DBIx::Class class. PARAMETERS
The DBIx::Class authentication driver accepts the following required parameters. SCHEMA (required) Specifies the DBIx::Class::Schema object to use for authentication. This class must be loaded prior to use. CLASS (required) Specifies the DBIx::Class class within the schema which contains authentication information. FIELD_METHODS (required) FIELD_METHODS is an arrayref of the methods in the DBIx::Class class specified by CLASS to be used during authentication. The order of these methods needs to match the order of the CREDENTIALS. For example, if CREDENTIALS is set to: CREDENTIALS => [qw(auth_user auth_domain auth_password)] Then FIELD_METHODS must be set to: FIELD_METHODS => [qw(userid domain password)] FIELD_METHODS supports filters as specified by CGI::Application::Plugin::Authentication::Driver METHODS
verify_credentials This method will test the provided credentials against the values found in the database, according to the Driver configuration. SEE ALSO
CGI::Application::Plugin::Authentication::Driver, CGI::Application::Plugin::Authentication, perl(1) BUGS
Please report any bugs or feature requests to "bug-cgi-application-plugin-authentication-driver-dbic at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-DBIC <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-Authentication-Driver-DBIC>. 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 CGI::Application::Plugin::Authentication::Driver::DBIC You can also look for information at: o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/CGI-Application-Plugin-Authentication-Driver-DBIC <http://annocpan.org/dist/CGI-Application-Plugin- Authentication-Driver-DBIC> o CPAN Ratings http://cpanratings.perl.org/d/CGI-Application-Plugin-Authentication-Driver-DBIC <http://cpanratings.perl.org/d/CGI-Application-Plugin- Authentication-Driver-DBIC> o RT: CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Application-Plugin-Authentication-Driver-DBIC <http://rt.cpan.org/NoAuth/Bugs.html?Dist=CGI-Application-Plugin-Authentication-Driver-DBIC> o Search CPAN http://search.cpan.org/dist/CGI-Application-Plugin-Authentication-Driver-DBIC <http://search.cpan.org/dist/CGI-Application-Plugin- Authentication-Driver-DBIC> THANKS
Cees Hek for CGI::Application::Plugin::Authentication Shawn Sorichetti for CGI::Application::Plugin::Authentication::Driver::CDBI which this module is shamelessly copied from. AUTHOR
Jaldhar H. Vyas, "<jaldhar at braincells.com>" COPYRIGHT &; LICENSE Copyright 2007, Consolidated Braincells Inc., all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.3 2011-05-16 CGI::Application::Plugin::Authentication::Driver::DBIC(3pm)
All times are GMT -4. The time now is 06:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy