Hi unix geeks out there,
I have a file that contains the output of a command in text format
,
The giant task that lies in front of me is I need to edit each line of the file and format it into HTML output in order to send a mail.
The major problem is the highlighted part should be represented as a link with the name THE LINK ,on clicking the link i should be able to go to the actual page.
The output i need is as below,
The thing is even though "THE LINK" part is displayed same, it should take me to different pages based on the selection.
Also i am allowed to place the remaining part of the file in a table or so.
I hope i have explained my problem well.
Please help me out in achieving this task.
I hav tried the the result u have given me.
Its not the solution i need.
Then show the input you fed the script, the output it produced and in which way this differs from the desired result. I can write scripts, but not read minds.
Hi bakunin,
I didn't mean to say your script wont work , it is part of my task.
As sathyaonunix suggested i needed the code to fulfill my task.
Hope i am clear. And please don consider my reply as a disrespect.
Your code works fine and creates the links as required.
Thanks,
Kashyap.
---------- Post updated at 04:28 PM ---------- Previous update was at 04:22 PM ----------
Hi sathya,
Your piece of code works marvellous.
But there is a slight hindrance i my task.
Will try to explain to you.
After i obtain the html tags as output i need to send a mail in the html format,
Hope u understand my problem.
I am using the below code to send the mail.
The Now please tell me how i can encapsulate the html output that you provided me into the mail.
I hope you understood my problem.
In simple words the output of the html should be encapsulated in the mail.
Thanks,
Kashyap.
Hi,
I need to format a command output for the beolow command:
runmqckm -cert -list -db $MQ_KDB -pw $PASSWD -expiry $EXP | grep -v "Certificates in database"
The output will be:
"ABC - cert name"
From: Tuesday, May 25, 1999 11:09:40 AM CDT To: Saturday, May 25, 2019 11:39:40 AM CDT
... (3 Replies)
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)
Hello,
Currently i have a script which will disply the results in plain text format.
I want to format the result in more readable format like Making bold headings and format with colors etc. Something like html and send that content as email.
Please help me how i can do that.
I am using... (10 Replies)
Hello,
I am a middleware administrator and as an admin I need to monitor a number of middleware instances (weblogic servers). But since it is a not the forum for that i would like to put my problem in simple terms and need guidance on that.
I need to use apache webserver on Solaris 10 zones to... (3 Replies)
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)
Hello,
Currently i have a ksh script which will disply the results in plain text format.
I want to format the result in more readable format like Making bold headings and format with colors etc. Something like html or excel format and send that content as email.
Please help me how i can do... (2 Replies)
Hi there..
I need a proper "mutt" command to send a mail with html body and html attachment at a time.
Also if possible let me know the other commands to do this task.
Please help me.. (2 Replies)
Hello All,
I have a an application written in C and runing on Red Hat Linux.
In my code I have written a command that is fired on the linux shell by using system() function call.
Now I need to read the output of this command in my c program and assign it to a variable.
Can anyone... (1 Reply)
I have this shell script where I have both pl/sql and sql.
But want to have a snigle output file where the result of each cursors are in HTML tables.
I was able to do that on my old script but it was only sql scripts (no pl/sql).
Can I do have such outputs now with my new script where I... (2 Replies)
suppose u have 2 files ; where both files have one line in common.
say one file like that
>gi|62859953|ref|NP_001017322.1| plexin B2
MKEKERTKAITEIYLTRLLSVKGTLQQFVDNFFQSVLNSNQVVPPAVKYFFDFLDEQAEKYEIKDEDTVHIWKTNSLSLR... (13 Replies)