convert txt to 3 column html
I have a server sending me a plain text email every day, reporting the below parameters. Its reading them from a text file, and sending them to my email.
How can convert this to a three column html table and send that? Code:
Sync Total: 1 directory, 4 files, 0 symlinks |
What would be the column criterias(name)?
Did you tried any scripts yourself? If so post it. |
#a.html is output_html_file
#file.txt is the text file produced by server oldIFS=$IFS IFS=: terminal=`tty` exec<file.txt echo "<html><head><title>forecast</title></head><body><table border=5>" >>a.html while read line do set $line echo "<tr><td>"$1"</td><td>"$2"</td></tr>" >>a.html done echo "</table></body></html>" >>a.html IFS=$oldIFS exec<$terminal |
Please use [code][/code] tags to display code or data.
So what is your issue? |
From that file can you show an example of first row (arrangement).
|
All times are GMT -5. The time now is 01:12 PM. |