Help needed in sending file content with colors and borders

HI

i am running a shell script in cron and storing the output of that script in a file say test .then i am copying the content of test to test1 and i will send the output of test to some email ids using mutt . Next time when the script executes i am comparing the contents of test and test1 and email will be send if there is any difference in the content of these two files.

what i am looking for is to get a better view of the output while viewing in outlook with some borders and to highlight with red color for only those rows which are different in those 2 files for better understanding of changed rows.
output of test file will be like this.

Apple Orange  Mango

output of test1 will be the same while running the script for the first time.

if it changes.

output of test1 will be

Apple Grape Mango

Kindly help

Since you want different colors when looking at the mail in Outlook, you have two obvious options: Create the mail in RTF format, or create it in HTML format. I would recommend the latter, because HTML can be displayed by virtually any mail client.

Hi
can you please suggest how to create this in html format

Check this and other links found when searching these forums.

1 Like