Sponsored Content
Top Forums Shell Programming and Scripting Need to convert datafeed to html using script Post 302661545 by Corona688 on Monday 25th of June 2012 11:12:04 AM
Old 06-25-2012
I see a conspicuous lack of commas in your comma separated values. I'm assuming it's just an ordinary flatfile?

Code:
while read KEYWORD DESC IMAGE PRICE BUYURL
do
cat <<EOF
<h2>${KEYWORD}</h2><p>Price:${PRICE}</p><p><a href="http://www.sit-id.com/"><img src="${IMAGE}"></a></p><p><a href="${BUYURL}"><img src="buynow.jpg"></a></p><p><strong>Product Description</strong></p><p>${DESC}</p><a href="${BUYURL}"> read more..
EOF
done > output

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help to convert Flat file to HTML

Hello I need help to convert flat file data to HTML Table format. I am generating everyday Flat file and want to convert into HTML Table format. The format of my file is: version host Total YRS NO APPS PSD 10 Sun 30 2 4 6 7 and flat... (11 Replies)
Discussion started by: getdpg
11 Replies

2. Shell Programming and Scripting

Script to Convert HTML to MIME mail -- HELP!

Hi: I have writed a script that read a HTML file and convert this in a multipart mime fail to send in a mail. But the result isn't interpreted lika a mime file!! Somebody can see the error??? --------------------------- #! /bin/bash SB=$1 IF=$2 OF=$3 rm -f $OF.b64 ... (7 Replies)
Discussion started by: sushisan
7 Replies

3. UNIX for Dummies Questions & Answers

convert csv to html file

Hi All, I am new to this forum,not sure where to post this query...so posted here Kindly need any of your help on the below ------------ I am using shell scripting and trying to convert a csv file to html file... example.csv --------------- Name Country Age Sex Andy India 25 ... (4 Replies)
Discussion started by: sumithra
4 Replies

4. Shell Programming and Scripting

Awk script to convert csv to html

Hi Written some script to convert csv to html but could not add table headers.Below are the errors iam getting ./csv2html | more + awk -v border=1 -v width=10 -v bgcolor=black -v fgcolor=white BEGIN { printf("<table border=\"%d\" bordercolor=\"%s\" width=\"%d\"... (2 Replies)
Discussion started by: zeebala1981
2 Replies

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

6. Shell Programming and Scripting

Script to convert CSV file to HTML

Hi, I have made a a script which creates a csv file as daily database report However i want to covert that csv file to html because csv file does not have a good visibilty. So it is possible to have such csv to html coversion script. Your prompt help much appreciated. Thanks in advance (4 Replies)
Discussion started by: sv0081493
4 Replies

7. Shell Programming and Scripting

Script to convert csv file to html with good visibility

Hi, I have Below script which converts csv file to html succesfully.but the visiblity is simple in black n white. I want to have better visibilty of each columns in different colours(like green).As it is a Database report suppose some tablespace available space is less than 20% then it should... (7 Replies)
Discussion started by: sv0081493
7 Replies

8. Shell Programming and Scripting

Using CSH and need to convert html to PDF

Hi, I am currently using the below code and it throws an error saying badly placed ()'s. I am not sure if this right way to convert html to PDF, please help..I am using C-shell script system ("../html2doc pdf 1000 portrait html$prnfile.html $prnfile.pdf ") print "Content-type:application/pdf... (7 Replies)
Discussion started by: lakers646
7 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. UNIX for Beginners Questions & Answers

How to convert my /bin/sh script with cgi and html to run it on browser!??

Hello, I want to run this script on my CentOS 6 via browser : ________________________________________________________________________________________________ #!/bin/sh echo Username? read MY_NAME echo Provisional file name? read MY_FILE echo File NAME you want to save? read MY_FILE2... (16 Replies)
Discussion started by: juta2020
16 Replies
MBOXCHECK(1)						User Contributed Perl Documentation					      MBOXCHECK(1)

NAME
mboxcheck - MBOX mail checking program. SYNOPSIS
mboxcheck [options] [file [...] ] DESCRIPTION
MBOXcheck is a simple mailbox checker. Give some options and at least one mailbox file as an argument and it will print some status of how many messages there are and which status they have. OPTIONS
--help The help text. -h --version The version information about this tool. -V --showon [v][?] When to show a mailbox in the list. [v] - verbose, always show. [?] - show when count is above 0 for the below types, see --show what for more information about that. The default is to trigger only on new messages (--showon new). --show [n][s][r][o][a][d] What counts to show. The caracter in the bracket is the short form. The what string can be comma separated to specify more than one option. Multiple --show options will add more (and will not remove shows). [n] - new (new messages) [s] - seen (seen but not read messages) [r] - read (read and answered messages) [o] - onlyread (just read messages) [a] - answered (answered messages) [d] - deleted (deleted messages) The default is to show new and seen messages (--show ns). --recurse This option will tell the tool to recurse into -R -r subdirectories. --nosymlink Tell the program to ignore symlinked files and directories. --cachedir dir A temporary directory to use for speedup cache (default ~/.mboxcheckcache) --nocache Do not use a temporary directory. CACHE
The cache file is named after the path to the file with slash caracters '/' replaced with two commas ',,'. The content is a list of comma separated values; last position, new, seen, only read, answered and deleted mail. AUTHOR
Ola Lundqvist <opal@debian.org> SEE ALSO
http://inguza.com/software/mboxcheck Mboxcheck Sat Apr 7 19:16:14 CEST 2012 MBOXCHECK(1)
All times are GMT -4. The time now is 01:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy