Visit Our UNIX and Linux User Community


How to change the font or color of text


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers How to change the font or color of text
# 1  
Old 12-17-2007
Data How to change the font or color of text

Hi Gurus,

I have a small requirement where i want to change the color & font of some text in a file.

i have a file error.txt which will be created in the script using egrep.
After that iam adding these lines at head & tail to that file using the following code

awk 'BEGIN{print"Please check the error " "} {print} END {print "Below are fields"}' error.txt>temp
mv temp error.txt

Now iam attaching it as body of the email.

In the email i should get these head & tail lines in bold,more font with some color

Please help me in dis requirement
# 2  
Old 12-17-2007
It totally depends upon the tool the recipient is using to read the mail.
Outlook, Blackberry, HTML, etc.
# 3  
Old 12-17-2007
Plain text does not contain formatting information.

You would need to send HTML.

See https://www.unix.com/unix-advanced-ex...x-command.html

Now, what will happen to somebody not using an HTML capable mail reader?
# 4  
Old 12-18-2007
Quote:
Originally Posted by porter
Plain text does not contain formatting information.

You would need to send HTML.

See https://www.unix.com/unix-advanced-ex...x-command.html

Now, what will happen to somebody not using an HTML capable mail reader?
we are using Outlook
Html can be printed in body of email
# 5  
Old 12-18-2007
Quote:
Originally Posted by pssandeep
we are using Outlook
Html can be printed in body of email
Often people want alert emails that can be read on handhelds.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #321
Difficulty: Medium
DHCP stands for Dynamic Host Configuration Port.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Change text font to greater one in this very good MOTIF texteditor ?

Hi, i have here found a very good texteditor source code programmed in the MOTIF GUI language. For myself i need NOTHING else to program. To start from a very easy point of view i want to RUN this editor on my LINUX machine and type simple C code. The reason for this post is that the text... (7 Replies)
Discussion started by: Sennenmut
7 Replies

2. 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

3. UNIX for Beginners Questions & Answers

Change text color from echo command?

I have a bash script that starts and stops a game among other things through in.fifo and out.fifo In game the text comes out gray . Kinda hard to see in game window . I would like to change it to purple and maybe capitalize it. #!/bin/bash #nwservctl.sh cd... (5 Replies)
Discussion started by: 222222quick
5 Replies

4. Shell Programming and Scripting

Change text color in Korn shell to highlight Error

Hi this is my first post, so forgive me if what I'm requesting doesn't make sense. I'm connecting into a Unix server via SSH and using a Korn Shell (#!/bin/ksh). The Unix server has Oracle 11g installed on it and there are a number of scripts already setup to query the Oracle database to perform... (2 Replies)
Discussion started by: KeithJ
2 Replies

5. 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

6. Shell Programming and Scripting

change text color in postscript file

Hi everyone, I have a program that produces postscript files on the fly The color of the files produced are in black and white I want to change the text color of postscript file as the file is being produced without having to manually go into the ps file and change it myself. Any Ideas?... (5 Replies)
Discussion started by: walforum
5 Replies

7. Shell Programming and Scripting

font color in script

i am using ubuntu 11.04 and i just finished writing a shell script but i was wanting to know if their is a way to change the font color of just one sentence? (2 Replies)
Discussion started by: hotshot247
2 Replies

8. Shell Programming and Scripting

Change the font of text in output file in shell scipt

hi, I want to change the font of text in output file. :( I tried the below code code: if awk 'BEGIN{if('$RSS'>='1000')exit 0;exit 1}' then RED=`echo "\033 i can see colors in terminal but not in output file :wall: please help me how i can get colors text in output file. edit... (1 Reply)
Discussion started by: sreelu
1 Replies

9. Shell Programming and Scripting

Change color or font when executing a script

I'm writing a simple menu script and I would like to output the whole script using background color: black AND foreground color:white. Meaning if the ssh terminal of a user is set to green for example, it will change to my desired color when menu script is executed. Once the script is exited, it... (1 Reply)
Discussion started by: lhareigh890
1 Replies

10. Shell Programming and Scripting

Font Color Change Using .profile

Does anyone know how can I change font color, background color etc for a particular user using .profile? Any help is appreciated. (0 Replies)
Discussion started by: fifo_vs_lifo23
0 Replies

Featured Tech Videos