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