- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: script output in BOLD
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 04:53 AM
тАО12-01-2005 04:53 AM
ie... (text shown in CAPS are to be bold)
now is the TIME for all good men
TO COME TO THE AID OF THEIR COUNTRY...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 04:57 AM
- Tags:
- tput
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 04:57 AM
тАО12-01-2005 04:57 AM
Re: script output in BOLD
Try a man on "tput".
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 05:09 AM
тАО12-01-2005 05:09 AM
Re: script output in BOLD
export ttybold=`tput bold` ; export ttynorm=`tput rmso`
Then I can do
echo "now is the ${ttybold}TIME${ttynorm} for all good men"
HTH
-- Rod Hills
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 05:15 AM
тАО12-01-2005 05:15 AM
Re: script output in BOLD
printf "%-10s: %-10s %-16s %-16s %-s\n" $NODE $LVLNB $PVD1 $PVD2 $NOTE
where the whole line is to be BOLD? but nothing before or nothing after?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 05:21 AM
тАО12-01-2005 05:21 AM
Re: script output in BOLD
printf "%-10s: %-10s %-16s %-16s %-s\n" $NODE $LVLNB $PVD1 $PVD2 $NOTE
tput rmso
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 05:23 AM
тАО12-01-2005 05:23 AM
Re: script output in BOLD
How about :
# XON=`tput bold`;XOFF=`tput rmso`;printf "%sI said %s %-s\n" ${XOFF}
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 05:50 AM
тАО12-01-2005 05:50 AM
Re: script output in BOLD
the suggestions for incorporating it into a printf have not worked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 06:09 AM
тАО12-01-2005 06:09 AM
Re: script output in BOLD
However, you can create terminfo entries for printers as well and invoke tput with a -T option to indicate the printer type. Note that you will need to know the printer model and have a terminfo entry for each type. The command that converts a text file into a terminfo entry is 'tic'; 'untic' does the reverse. Man tic and untic for details. You are now getting into areas that UNIX ain't real good at doing. The application is supposed to take full control of this kind of printer output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-01-2005 08:29 AM
тАО12-01-2005 08:29 AM
Re: script output in BOLD
typeset BOLD=$(tput bold)
typeset NORMAL=$(tput rmso)
typeset VAR1="This is some text; "
typeset VAR2="this here is some more text."
printf "%s%s %s%s\n" "${BOLD}" "${VAR1}" "${VAR2}" "${NORMAL}"
printf "(Normal) %s %s\n" "${VAR1}" "${VAR2}"