12-17-2007
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
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
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
3. Shell Programming and Scripting
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. UNIX for Dummies Questions & Answers
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
7. Shell Programming and Scripting
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
8. UNIX for Beginners Questions & Answers
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
9. Shell Programming and Scripting
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
10. UNIX for Beginners Questions & Answers
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
LEARN ABOUT NETBSD
textout_ex
textout_ex(3alleg4) Allegro manual textout_ex(3alleg4)
NAME
textout_ex - Writes a string on a bitmap. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void textout_ex(BITMAP *bmp, const FONT *f, const char *s, int x, int y, int color, int bg);
DESCRIPTION
Writes the string `s' onto the bitmap at position x, y, using the specified font, foreground color and background color. If the background
color is -1, then the text is written transparently. If the foreground color is -1 and a color font is in use, it will be drawn using the
colors from the original font bitmap (the one you imported into the grabber program), which allows multicolored text output. For high and
true color fonts, the foreground color is ignored and always treated as -1. Example:
/* Show the program's version in blue letters. */
textout_ex(screen, font, "v4.2.0-beta2", 10, 10,
makecol(0, 0, 255), -1);
SEE ALSO
font(3alleg4), textout_centre_ex(3alleg4), textout_right_ex(3alleg4), textout_justify_ex(3alleg4), textprintf_ex(3alleg4),
text_height(3alleg4), text_length(3alleg4)
Allegro version 4.4.2 textout_ex(3alleg4)