Having problem with how to use HTML in Unix shell scripting

Hi All,

I'm new to this forum. This is my first question. I'm trying to automate the status related information in our environment. So this is how the output would be.

SEGMENT SERVER PORT1 PORT2 PORT3 PORT4 PORT5
ACS acscsa01 up up up up up

All I'm interested is the first line, which i woud save in some sample.txt

so my sample.txt file would be.
more sample.txt
ACS acscsa01 up up up up up

Having the desired details in the file, Will take each filed from the file
FILED1=ACS
FILED2=acssca01 etc..

And the same would be done for the other 40 servers acssca01-40.

Once i have that i want to send the data through mail in the tabular format as below.

SEGMENT| SERVER PORT1 PORT2 PORT3 PORT4 PORT5

ACS acscsa01 UP UP UP UP UP

FCS acscsa02 UP UP UP UP UP

XCS acscsa03 UP UP UP UP UP

I'm able to get the desired output with out the tabular structure. But, wnat to learn how this to be done.

Would really appreciate if you can refer to link or book for using the html in unix.

Appreciate your response.

---------- Post updated at 01:22 PM ---------- Previous update was at 01:02 PM ----------

Appreciate quick response.

What have you tried so far?

Which part are you having problems with?

What does HTML have to do with it?

Hi Johnson,

I have tried to get the desired output and I'm able to get that in mail, which looks as below.

SEGMENT| SERVER PORT1 PORT2 PORT3 PORT4 PORT5

ACS acscsa01 UP UP UP UP UP
FCS acscsa02 UP UP UP UP UP
XCS acscsa03 UP UP UP UP UP

But, I'm looking for an better formatted output, which i would to be in an tabular format.

I have absolutely no idea n how to use HTML in Unix scripting,I'm thinking that HTLM would the needful.

Bottom line is, want the output in tabular format.