Sponsored Content
Top Forums Shell Programming and Scripting Bash shell script that inserts a text data file into an HTML table Post 302531589 by intern123 on Friday 17th of June 2011 08:14:20 AM
Old 06-17-2011
No. It isn't homework, but it is a part of my internship project. Sed and awk are the only tools i've been told about, and am completely unaware about perl.
Apologies for the not formentioning all the details. Any help would be much appreciated.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

shell script to read data from text file and to load it into a table in TOAD

Hi....can you guys help me out in this script?? Below is a portion text file and it contains these: GEF001 000093625 MKL002510 000001 000000 000000 000000 000000 000000 000001 GEF001 000093625 MKL003604 000001 000000 000000 000000 000000 000000 000001 GEF001 000093625 MKL005675 000001... (1 Reply)
Discussion started by: pallavishetty
1 Replies

2. Shell Programming and Scripting

unix shell script which inserts some records into a file located in remote servers...

All, I need to write an unix shell script which inserts some records into a file located in remote servers. * Get the input from the user and insert according the first row. It should be in ascending order. 123451,XA,ABA 123452,XB,ABB 123453,XC,ABC 123455,XE,ABE 123456,XF,ABF 123458,XG,ABG... (2 Replies)
Discussion started by: techychap
2 Replies

3. 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

4. Shell Programming and Scripting

help with a bash script to create a html table

Hi guys as the title says i need a little help i have partisally written a bash script to create a table in html so if i use ./test 3,3 i get the following output for the third arguement in the script i wish to include content that will be replace the A characters in the... (2 Replies)
Discussion started by: dunryc
2 Replies

5. UNIX for Dummies Questions & Answers

Bash script to insert data into an html table

hi, I need to create a bash shell script which picks up data from a text file and in the output file puts it into an html made table. I have to use sed and awk utilties to do this the input text file will contain data in the format: job name para1 para2 para3 para4 para4 1 ... (1 Reply)
Discussion started by: intern123
1 Replies

6. 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

7. Shell Programming and Scripting

Creating html table from data in file

Hi. I need to create html table from file which contains data. No awk please :) In example, ->cat file num1 num2 num3 23 3 5 2 3 4 (between numbers and words single TAB). after running mycode i need to get (heading is the first line): <table>... (2 Replies)
Discussion started by: Manu1234567
2 Replies

8. Shell Programming and Scripting

Input data of a file from perl into HTML table

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

9. Linux

Parsing - export html table data as .csv file?

Hi all, Is there any out there have a brilliant idea on how to export html table data as .csv or write to txt file with separated comma and also get the filename of link from every table and put one line per rows each table. Please see the attached html and PNG of what it looks like. ... (7 Replies)
Discussion started by: lxdorney
7 Replies

10. 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
DateTime::Locale::tn(3) 				User Contributed Perl Documentation				   DateTime::Locale::tn(3)

NAME
DateTime::Locale::tn SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'tn' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Tswana. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) Mosopulogo Labobedi Laboraro Labone Labotlhano Matlhatso Tshipi Abbreviated (format) Mos Bed Rar Ne Tla Mat Tsh Narrow (format) 2 3 4 5 6 7 1 Wide (stand-alone) Mosopulogo Labobedi Laboraro Labone Labotlhano Matlhatso Tshipi Abbreviated (stand-alone) Mos Bed Rar Ne Tla Mat Tsh Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) Ferikgong Tlhakole Mopitlo Moranang Motsheganang Seetebosigo Phukwi Phatwe Lwetse Diphalane Ngwanatsele Sedimonthole Abbreviated (format) Fer Tlh Mop Mor Mot See Phu Pha Lwe Dip Ngw Sed Narrow (format) 1 2 3 4 5 6 7 8 9 10 11 12 Wide (stand-alone) Ferikgong Tlhakole Mopitlo Moranang Motsheganang Seetebosigo Phukwi Phatwe Lwetse Diphalane Ngwanatsele Sedimonthole Abbreviated (stand-alone) Fer Tlh Mop Mor Mot See Phu Pha Lwe Dip Ngw Sed Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BC AD Abbreviated BC AD Narrow BC AD Date Formats Full 2008-02-05T18:30:30 = Labobedi, 2008 Tlhakole 05 1995-12-22T09:05:02 = Labotlhano, 1995 Sedimonthole 22 -0010-09-15T04:44:23 = Matlhatso, -10 Lwetse 15 Long 2008-02-05T18:30:30 = 2008 Tlhakole 5 1995-12-22T09:05:02 = 1995 Sedimonthole 22 -0010-09-15T04:44:23 = -10 Lwetse 15 Medium 2008-02-05T18:30:30 = 2008 Tlh 5 1995-12-22T09:05:02 = 1995 Sed 22 -0010-09-15T04:44:23 = -10 Lwe 15 Short 2008-02-05T18:30:30 = 08/02/05 1995-12-22T09:05:02 = 95/12/22 -0010-09-15T04:44:23 = -10/09/15 Default 2008-02-05T18:30:30 = 2008 Tlh 5 1995-12-22T09:05:02 = 1995 Sed 22 -0010-09-15T04:44:23 = -10 Lwe 15 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = Labobedi, 2008 Tlhakole 05 18:30:30 UTC 1995-12-22T09:05:02 = Labotlhano, 1995 Sedimonthole 22 09:05:02 UTC -0010-09-15T04:44:23 = Matlhatso, -10 Lwetse 15 04:44:23 UTC Long 2008-02-05T18:30:30 = 2008 Tlhakole 5 18:30:30 UTC 1995-12-22T09:05:02 = 1995 Sedimonthole 22 09:05:02 UTC -0010-09-15T04:44:23 = -10 Lwetse 15 04:44:23 UTC Medium 2008-02-05T18:30:30 = 2008 Tlh 5 18:30:30 1995-12-22T09:05:02 = 1995 Sed 22 09:05:02 -0010-09-15T04:44:23 = -10 Lwe 15 04:44:23 Short 2008-02-05T18:30:30 = 08/02/05 18:30 1995-12-22T09:05:02 = 95/12/22 09:05 -0010-09-15T04:44:23 = -10/09/15 04:44 Default 2008-02-05T18:30:30 = 2008 Tlh 5 18:30:30 1995-12-22T09:05:02 = 1995 Sed 22 09:05:02 -0010-09-15T04:44:23 = -10 Lwe 15 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Bed 1995-12-22T09:05:02 = 22 Tla -0010-09-15T04:44:23 = 15 Mat Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = Bed, 2-5 1995-12-22T09:05:02 = Tla, 12-22 -0010-09-15T04:44:23 = Mat, 9-15 MMM (LLL) 2008-02-05T18:30:30 = Tlh 1995-12-22T09:05:02 = Sed -0010-09-15T04:44:23 = Lwe MMMd (MMM d) 2008-02-05T18:30:30 = Tlh 5 1995-12-22T09:05:02 = Sed 22 -0010-09-15T04:44:23 = Lwe 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Bed Tlh 5 1995-12-22T09:05:02 = Tla Sed 22 -0010-09-15T04:44:23 = Mat Lwe 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Tlhakole 5 1995-12-22T09:05:02 = Sedimonthole 22 -0010-09-15T04:44:23 = Lwetse 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Bed Tlhakole 5 1995-12-22T09:05:02 = Tla Sedimonthole 22 -0010-09-15T04:44:23 = Mat Lwetse 15 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = Bed, 2008-2-5 1995-12-22T09:05:02 = Tla, 1995-12-22 -0010-09-15T04:44:23 = Mat, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Tlh 1995-12-22T09:05:02 = 1995 Sed -0010-09-15T04:44:23 = -10 Lwe yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Bed, 2008 Tlh 5 1995-12-22T09:05:02 = Tla, 1995 Sed 22 -0010-09-15T04:44:23 = Mat, -10 Lwe 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Tlhakole 1995-12-22T09:05:02 = 1995 Sedimonthole -0010-09-15T04:44:23 = -10 Lwetse yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week Mosopulogo SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::tn(3)
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy