Tabular form in shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Tabular form in shell script
# 1  
Old 05-19-2011
Question Tabular form in shell script

hi,

I need to mention the data in tabular form in shell script. Smilie

Input as below:

Health check (heading1)
CPU/Memory Utilization of pc on server (h2)
1214 of rpc3 is exceeds 0.3 % (data)
CPU Utilization is normal for rpc/33 on 2673
CPU Utilization is normal for rpc/33 on 2640


output as below:
 
Health check
CPU/Memory Utilization of rpc on server (h2)
Memory Utilization of rpc on server (h2)
CPU Utilization is normal for pc/33 on 2640
CPU Utilization is normal for pc/33 on 2640
CPU Utilization is normal for pc/33 on 2640
CPU Utilization is normal for pc/33 on 2640

Please help me how i can get data in table form. Smilie suggest me code
# 2  
Old 05-19-2011
What have you tried so far? Mind that this is a support forum, we don't do your work for you just because you don't want to. If you want someone for that, check a different site.
# 3  
Old 05-19-2011
Question

i tried the below code
code:


Code:
echo " <TABLE border=1><THEAD> <TH><h3>Health check  </h3></TH> <TR> <TD> <FONT color=RED> exceeds 0.3 % </FONT> </br></TD></TR></THEAD></TABLE>" >> $output

i can see the tables in output file but i canot see in mail Smilie

I am using sendmail command
code:

Code:
export MAILTO="si@e.com"
export CONTENT="health.html"
export SUBJECT="HealthCheck"
export MAILFROM="ski@e.com"
(
echo "Subject: $SUBJECT"
echo "MIME-Version: 1.0"
echo "Content-Type: text/html"
echo "Content-Disposition: inline"
cat $CONTENT
) | sendmail $MAILTO


Please suggest me how i can get the table in mail?

Last edited by pludi; 05-19-2011 at 04:18 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Trying to submit web form content to a shell script

Hi I was hoping some one could help me with a problem I have. I am trying to collect some information from a web form and save it to a text file. I found an example on this site that is sort of what I am trying to accomplish, the shell script bellow should echo the input back to the browser... (0 Replies)
Discussion started by: Paul Walker
0 Replies

2. Shell Programming and Scripting

Fetching the required data out of a tabular form

Hello Gurus, I am trying to fetch a required number of lines from an output of a command which is in tabular form. Below is the command for reference along with how the result is being shown on UNIX shell. /usr/openv/volmgr/bin/vmquery -b -p 5 The result of the above command is as... (6 Replies)
Discussion started by: Ali Sarwar
6 Replies

3. Shell Programming and Scripting

Print a tabular report using shell

Hi All, I am trying to write a shell script which shows the report like a table with below details: Branch Name: FileName changed| Author | revision number of the file 1)we use SVN as our version control tool, so our intention is to use svn commands and generate a basic report... (1 Reply)
Discussion started by: Naga Saketh
1 Replies

4. Shell Programming and Scripting

Dispaying output in tabular form

hi, I have a script which is dispaying the output as below: Column 3:value1 Column 4:value 4 column 8:value 8 column 9:value 9 column 13:value 13 Column 3:value10 Column 4:value 40 column 8:value 80 column 9:value 90 column 13:value 103 However,I need the output in tabular... (5 Replies)
Discussion started by: Vivekit82
5 Replies

5. Shell Programming and Scripting

Displaying log file pattern output in tabular form output

Hi All, I have result log file which looks like this (below): from the content need to consolidate the result and put it in tabular form 1). Intercomponents Checking Passed: All Server are passed. ====================================================================== 2). OS version Checking... (9 Replies)
Discussion started by: Optimus81
9 Replies

6. UNIX for Dummies Questions & Answers

Put data in tabular form..

Dear Friends, I have a file as under : +++ ME 12-06-13 18:16:20 A RED FEW AND ROW1 1MN FEL AS HI FI BV LR TS HR ES MR * 0 13296 0 120 1 15 KS RR 10 0 +++ ME 12-06-13 18:26:20 A RED FEW AND ROW2 1MN FEL AS... (2 Replies)
Discussion started by: vanand420
2 Replies

7. UNIX for Dummies Questions & Answers

Put data into tabular form

Hi I am having a file which is required to be presented in the under-noted output form. Please suggest. Input: Kapil: apple 4 banana 6 cherry 0 Manoj: apple 13 banana cheery 2 Output: apple banana cherry Kapil: 4 6 0 Manoj: 13 2 Thanks in... (4 Replies)
Discussion started by: vanand420
4 Replies

8. Shell Programming and Scripting

Pass values from web form to shell script

Hi, is it possible to pass more values from web form like textbox to shell script and if yes,how to do that.:confused::confused::confused: (2 Replies)
Discussion started by: tdev457
2 Replies

9. Shell Programming and Scripting

generate tabular output from an input text file in unix shell scripting

Hi, I have the output (as below) which i want it to be in a table. For e.g. space utilization in PSE on path /logs is 0% space utilization in PSE on path /logs/tuxedo/tuxlsp is 16% space utilization in PSE on path /ldvarlsp/lsp/log is 37% space utilization in PSE on path /home is 6%... (7 Replies)
Discussion started by: pkbond
7 Replies

10. Shell Programming and Scripting

exporting number into .csv file in text form (no other extra charc) from shell script

I have written a k shell program which is executing a sql and exporting data in numeric form like 0412323444 into .csv file. the problem i am facing is that , the data is coming in excel formatted in scientific form like 4.1+E08,while my requirement is to store data as such 0412323444 in excel ( no... (5 Replies)
Discussion started by: Deepak_Rastogi
5 Replies
Login or Register to Ask a Question