Help needed in sending file content with colors and borders


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help needed in sending file content with colors and borders
# 1  
Old 01-02-2017
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.

Code:
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

Code:
Apple Grape Mango

Kindly help

Last edited by Don Cragun; 01-02-2017 at 03:57 AM.. Reason: Add CODE and ICODE tags again.
# 2  
Old 01-02-2017
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.
# 3  
Old 01-02-2017
Hi
can you please suggest how to create this in html format
# 4  
Old 01-02-2017
Check this and other links found when searching these fora.
This User Gave Thanks to RudiC For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help needed for sending email attachment

Hi Please help me how to send email attchment from linux server to outlook id I dont have uuencode or mutt installed on my machine and below is my uname -a output: Linux xxxxxxx 2.6.18-308.4.1.el5 #1 SMP Wed Mar 28 01:54:56 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux (7 Replies)
Discussion started by: buzzme
7 Replies

2. Shell Programming and Scripting

Body content is in random format while sending email from Linux to my outlook.

Hi I have a script running in lunix machine which emails log file content to my outlook. Here is the actual log file result: Image-1 In-Master:25028 ReplicaDn Consumer Supplier Delay dc=xxx,dc=com lmjker0110:12345 ... (4 Replies)
Discussion started by: buzzme
4 Replies

3. Shell Programming and Scripting

Help needed with Content synchronization script using rsync

Hi All, I need a .sh script which serves the below purpose. It would be of great help. I am unable to perform the second need of mapping texts within the file and updating only those contents. For Eg: There is a html file containing link abc.com. This should be replaced with xyz.com link in... (3 Replies)
Discussion started by: Amulya
3 Replies

4. Shell Programming and Scripting

Problem in sending mail with database content

Hi All, I want to fetch records from Oracle DB table and send it in a mail to a set of users. i.e, I have a query which returns a set of records. I want to send mail with below content: Hi , PFB the details: <first database record> <Second database record> ……………. ………………..... (3 Replies)
Discussion started by: anil029
3 Replies

5. Shell Programming and Scripting

Mail sending with multiple attachement(pdf and csv) with html content from Linux

Hi, We have a requirement to send multiple attachment(pdf and csv) along with html content in a single mail. For that we are using uuencode. It is working for single pdf attachment and html content. But we are unable to send both pdf and csv attachment with html content. Below is the script.... (5 Replies)
Discussion started by: dholea
5 Replies

6. Shell Programming and Scripting

sending content of a file in Expect

How Can I send the content of a file in Expect? Do I have to use cat command in a way? if yes how? lets say my file is called 1.txt. example: expect "Enter command to send:" {send "???? \r"} ???? --> content of the file 1.txt (1 Reply)
Discussion started by: alireza6485
1 Replies

7. UNIX for Dummies Questions & Answers

problem in sending out content in unix

Hello all!! i got a problem in the email content format in outlook which i mail it from a unix. i want the content to be multiple lines as i see in unix, but the content is grouped into a single line instead in the email content. The email content is made from tail of a file, and echo... (4 Replies)
Discussion started by: boydunshout
4 Replies

8. UNIX for Advanced & Expert Users

Reading a file and sending mail based on content of the file

Hi Gurus, I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file. eg. if file a.txt exists then send a mail to a@a.com simillary for b.txt,c.txt etc. Thanks for your help, Nimu (6 Replies)
Discussion started by: nimu1979
6 Replies

9. Shell Programming and Scripting

creating & sending formatted (with bolds & colors) CSV

Hi , I have a situation. Need is to create & send a formatted file with header in BOLD & colored & some sequel results as a content. I know echo -e \033 command, but its scope is limited in PUTTY. How to retain the formatting out of Putty; say after someone opens a email attachment... (2 Replies)
Discussion started by: infaWorld
2 Replies

10. UNIX for Dummies Questions & Answers

sending mail with html content

hi, I am new to unix. I need send html content as a mail from my sun-solaris2.6 work station. When I tried that the recipient gets it as html code with all the tags. any solutions? thanx in advance (2 Replies)
Discussion started by: gmchoudary
2 Replies
Login or Register to Ask a Question