The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
copy loses the text format tiger99 UNIX for Dummies Questions & Answers 3 04-13-2008 02:30 PM
Format a column of text mlucas UNIX for Dummies Questions & Answers 2 08-16-2006 04:52 PM
converting text to csv format gthokala Shell Programming and Scripting 13 06-09-2006 11:44 AM
converting PDF to text, rtf doc format saurya_s UNIX for Advanced & Expert Users 1 04-23-2004 04:25 PM
Binary to text format conversion manjunath High Level Programming 5 11-14-2002 01:10 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-08-2005
Lestat's Avatar
Lestat Lestat is offline
Registered User
  
 

Join Date: Feb 2005
Location: Quito - Ecuador
Posts: 67
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 (permalink)  
Old 06-08-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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 (permalink)  
Old 06-09-2005
Lestat's Avatar
Lestat Lestat is offline
Registered User
  
 

Join Date: Feb 2005
Location: Quito - Ecuador
Posts: 67
Exclamation 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 (permalink)  
Old 06-09-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0