Identify Color and send email with same color


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Identify Color and send email with same color
# 8  
Old 03-26-2014
Lovely,you are a rockstar mate,Big thanks for yor help
cheers

---------- Post updated 03-26-14 at 01:00 PM ---------- Previous update was 03-25-14 at 02:00 PM ----------

@"Chubler XL" The command you have given is working 100% percent perfectly mate,I was looking at ansi2html script,was trying to convert this script only to work using shell and awk ,as I am not permitted to install new packages in my office server.I tried pretty hard yesterday but it dint work well.Please if possible help me on this(I am from java background,my unix knowledge is of begginer range)
Thanks for the help you have done so far,really appreciate the time you are spending to help novices and begginers in this forum!!, you rock.
# 9  
Old 03-26-2014
The attached updated version should work. It does use multi-byte characters and some awk implementations may not like this, I've only tested with GNU awk.

Last edited by Chubler_XL; 03-26-2014 at 02:12 PM..
This User Gave Thanks to Chubler_XL For This Post:
# 10  
Old 03-26-2014
I've replaced to attached file with a new version that avoids using UTF8 characters in awk so it should be more compatible with older awk implementations. However it looks like GNU sed is also required by other parts of the script, so it is still unlikely to run on Solaris/AIX.
This User Gave Thanks to Chubler_XL For This Post:
# 11  
Old 03-26-2014
You rock
Login or Register to Ask a Question

Previous Thread | Next Thread

2 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Send mail with font color change

Hi All, I have a file that contains following entries. I want to highlight the line that has word as "FAILURE" while sending the email. File ------------------------------------------------------------ Job Name: ABC Start Time: 07/20/2019 07:32:39 End Time: 07/20/2019... (4 Replies)
Discussion started by: sdosanjh
4 Replies

2. UNIX for Dummies Questions & Answers

How to change the background color in the init 3 mode(not line color)

Hello, I am using RHEL 6.1 on VMware I am searching for a way to change background color (not line by line color wich one can using tput command) basically changing the color of the whole screen to white instead of the default black and changing font color to black and alos would like to... (2 Replies)
Discussion started by: Dexobox
2 Replies
Login or Register to Ask a Question