Set format to text


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Set format to text
# 1  
Old 06-08-2005
Set format to text

Hello, Im using a terminal that can configure colors and backgrounds for determinate text with format, but.... how i can put format to some text?

For example, i use:

echo "Hello my friend"

but i want as output

Hello my friend

the colors will be configured in the terminal but how i put to "my" as bold and "friend" as italic?
thanx
# 2  
Old 06-08-2005
Try my cecho script. Italics are not supported, but bold is....

echo "The next word is in `cecho bold BOLD` and this is `cecho blue IN BLUE..`"

Have a look at my bits on adding colour to /etc/motd too.... (sample output here)

Cheers
ZB
# 3  
Old 06-09-2005
Error An answer

My friend i need more help with /etc/motd, u dend me a link with an ezamble, and a download a file named motd, in my /ect i already have a file with this name but empty, what should i do? i have to replace the one u send me there or what?

Im sorry but i not speak english very well.


Quote:
Originally Posted by zazzybob
Try my cecho script. Italics are not supported, but bold is....

echo "The next word is in `cecho bold BOLD` and this is `cecho blue IN BLUE..`"

Have a look at my bits on adding colour to /etc/motd too.... (sample output here)

Cheers
ZB
# 4  
Old 06-09-2005
The /etc/motd file you can download from my site is an example of adding colour to /etc/motd - /etc/motd is displayed immediately after you login and my example shows how to add colour to this message (if the connecting terminals support it).

Anyway, the purpose of my giving you the link to this wasn't so much for you to replace your existing motd, but so that you could open the file in vi and have a look at the escape sequences used to add colour/boldface to output.

Cheers
ZB
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sed/awk command to convert number occurances into date format and club a set of lines

Hi, I have been stuck in this requirement where my file contains the below format. 20150812170500846959990854-25383-8.0.0 "ABC Report" hp96880 "4952" 20150812170501846959990854-25383-8.0.0 End of run 20150812060132846959990854-20495-8.0.0 "XYZ Report" vg76452 "1006962188"... (6 Replies)
Discussion started by: Chinmaya Kabi
6 Replies

2. Shell Programming and Scripting

Need script for transferring bulk files from one format to text format

"Help Me" Need script for transferring bulk files from one format to text format in a unix server. Please suggest (2 Replies)
Discussion started by: Kranthi Kumar
2 Replies

3. Shell Programming and Scripting

Text Format

I'd like to format a text in unix before mailing it to users. I want to change color and font of my plain text in unix. Thanks.. (1 Reply)
Discussion started by: Sara_84
1 Replies

4. Shell Programming and Scripting

Extracting a set of patterns from the text file

Hi experts, I need a help in extracting a set of patterns from the text file. Below is my scenario. Input file: I need to extract the data between My output should be as Thanks, Kalai (7 Replies)
Discussion started by: kalpeer
7 Replies

5. Shell Programming and Scripting

text format

Hi all I need you help to create script get the below output Thanks in advance. Ashan name.txt Wymouth_MRI_Lun79 PACS DR TEMP R drive stat.txt NO Normal Normal Out need Wymouth_MRI_Lun79 NO Normal PACS DR TEMP R drive Normal (1 Reply)
Discussion started by: ashanabey
1 Replies

6. Shell Programming and Scripting

format text

input file test.csv has following structure. SCHEM1.TAB1;COL1;DATATYPE;NOTNULL-- SCHEMA1.TAB1;COL2;DATATYPE;NOTNULL;WITH DEFAULT;-- .... SCHEMA1.TABn;COL1;DATATYPE;NOTNULL;WITH DEFAULT; i started using awk but text is not tab seperated.its just ; seperated. how to print output... (4 Replies)
Discussion started by: rocking77
4 Replies

7. Solaris

Set display to text

How do I set up my solaris 10 machine to display in text mode instead of graphics mode, permanently? (1 Reply)
Discussion started by: jastanle84
1 Replies

8. UNIX for Dummies Questions & Answers

How do i set time in 24 hour format?

Currently whenever i run date command output is shown like Mon Apr 12 05:17:21 IST 2010 When its 17:17 Here. How would i change it so that it should show. Mon Apr 12 17:17:21 IST 2010 (8 Replies)
Discussion started by: pinga123
8 Replies

9. Shell Programming and Scripting

extracting a set of strings from a text file

i have textfiles that contain a series of lines that look like this: string0 .................................................... column3a column4a string1**384y0439 ..................................... column3b column4b... (2 Replies)
Discussion started by: Deanne
2 Replies

10. Solaris

Printer set and format?

I have a network printer LaserJet 4050N on Sun Solaris Sun-Fire-408R. When I lp text.lis, it printed out steps like indent lines. When I unix2dos test.lis, it print out all right. I tried to print a report from Banner Finance - FGRCTRL, and chose the the same printer with command line: ... (2 Replies)
Discussion started by: simt
2 Replies
Login or Register to Ask a Question