The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
color,bold charandevu Shell Programming and Scripting 0 04-07-2008 04:24 AM
how to make a bold text in vi xzyan UNIX for Dummies Questions & Answers 0 09-02-2006 02:30 PM
Bold text svh High Level Programming 3 08-29-2005 02:04 AM
Printing in Bold preetikate UNIX for Dummies Questions & Answers 10 02-25-2004 08:57 AM
Bold Text? Atama UNIX for Dummies Questions & Answers 4 04-12-2002 10:40 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 07-29-2007
moe2266 moe2266 is offline
Registered User
  
 

Join Date: Nov 2004
Location: USA
Posts: 92
Red face How can i make this bold

Folks;
I'm writing this as a part of a script:
echo "col1 hdg|col2hdg|col3hdg|"

How can i make these fields shows in Bold text?
  #2 (permalink)  
Old 07-29-2007
Perderabo's Avatar
Perderabo Perderabo is online now Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,131
Try this command:
echo "one $(tput bold)two$(tput rmso) three"
  #3 (permalink)  
Old 07-30-2007
moe2266 moe2266 is offline
Registered User
  
 

Join Date: Nov 2004
Location: USA
Posts: 92
Thanks a lot, but your answer is not clear on how can it be used
  #4 (permalink)  
Old 07-30-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,960
Quote:
Originally Posted by moe2266 View Post
Thanks a lot, but your answer is not clear on how can it be used
Not clear ???

Thats a direct command which you could readily use it.
Did you try that out in a terminal ?

Am not clear about your requirement.
  #5 (permalink)  
Old 07-30-2007
moe2266 moe2266 is offline
Registered User
  
 

Join Date: Nov 2004
Location: USA
Posts: 92
So i should replace echo "col1 hdg|col2hdg|col3hdg|" with echo "one $(tput bold)two$(tput rmso) three".
Here's the example:
Mine is: echo " Date Viewer Editor"
should it be:

echo " Date$(tput bold) Viewer$(tput rmso) Editor"

Also why is the first one is bold & the second is rmso?
  #6 (permalink)  
Old 07-30-2007
matrixmadhan matrixmadhan is offline Forum Advisor  
Technorati Master
  
 

Join Date: Mar 2005
Location: leaf node in B+ tree
Posts: 2,960
rmso - offbold

man tput
  #7 (permalink)  
Old 07-30-2007
moe2266 moe2266 is offline
Registered User
  
 

Join Date: Nov 2004
Location: USA
Posts: 92
Thanks but it didn't work
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 11:45 PM.


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