email - How to do colouring the contents of a mail while sending via unix terminal using mailx command? -


i have file(.txt) below details(i having more 50 files listed 4) , while sending file via mail want implement coloring it. not sure while possible or not, please me on please ?

date    filename_now    avg_timestamp    space    count    status nov 4    chck01_20161104.txt    06:39    2.15m    17153    delayed    -->    red nov 4    trips11_20161104.txt    09:03    0.00m    024    on_time    -->    green nov 4    ar02_20161104.txt    09:31    0.00m    007    no_files    -->    yellow nov 4    ar01_20161104.txt    09:31    0.04m    433    delayed    -->    red 

this getting in mail(ms outlook), can implement coloring status field requested?

thanks lot time.

if want surround lines html font tags based on value of status column, awk code should trick:

{     if ( /on_time/ ) print "<font color=\"#00ff00\">", $0, "</font>"     if ( /delayed/ ) print "<font color=\"#ff0000\">", $0, "</font>"     if ( /no_files/ ) print "<font color=\"#ffff00\">", $0, "</font>" } 

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -