Hi,
I am trying to format the output of my script in a tabular format
using the html code in my shell script.
I am using html code for the first time in a shell script.I am trying to execute this script in Ksh but it is not getting executed.
Can you please help me in figuring this out.
Thanks in anticipation.
Regards
Isaac
could you please open the lid of your box so that we can see the script?
Hi
it would be helpful if u could throw some more light on ur problem
cheers
Given below is the code that i am trying to execute .
cat << EOF
<html>
<table>
<table border="1">
<tr>
<th><th class="greyCol"Format</th>
<th><th class="greyCol"1:00 AM</th>
<th><th class="greyCol"2:00 AM</th>
<th><th class="greyCol"5:00 AM</th>
</tr>
<tr>
<td><td class="blueCol"UK Express A50</td>
<td><td class="blueCol"$5460</td>
<td><td class="blueCol"$25460</td>
<td><td class="blueCol"N/A</td>
</tr>
<tr>
<td><td class="blueCol"Express C10</td>
<td><td class="blueCol"$2012</td>
<td><td class="blueCol"$1_2012</td>
<td><td class="blueCol"N/A</td>
</tr>
<tr>
<td><td class="blueCol"Patch</td>
<td><td class="blueCol"$2978</td>
<td><td class="blueCol"$12978</td>
<td><td class="blueCol"N/A</td>
</tr>
<tr>
<td><td class="blueCol"Non Patch</td>
<td><td class="blueCol"$3009</td>
<td><td class="blueCol"$43009</td>
<td><td class="blueCol"N/A</td>
</tr>
<tr>
<td><td class="blueCol"ROI Super</td>
<td><td class="blueCol"$13504</td>
<td><td class="blueCol"$3504</td>
<td><td class="blueCol"N/A</td>
</tr>
</table>
</html>
EOF
Lakris
5
Hi,
don't You mean to use echo and redirection (>)? The cat command expects a file name to conCATenate.
Best regards,
Lakris
ni2
6
You are missing a dash '-' (No the dash doesnt matter, cat << EOF and cat <<-EOF are the same.).
its cat <<-EOF
...
<your stuff here>
...
EOF
And it will just echo the your stuff to the terminal.
Lakris
7
sorry, I was wrong about the cat... stdin is used when no file is specified.
But, is the HTML table definition really correct? There are open <td in the code?
/L