Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

please advice how to bold the "Date & Time" numbers from the following file with tput command ( I have Solaris machine)

for example I want to bold only the "24-09-2009 16:17:45" etc for all other date and time

the tput will write in my ksh script

thx for the support

  TIMESTAMP               SET_ID TELEPHONE                    No TYPE
  ------------------- ---------- -------------------- ---------- ------------------

  24-09-2009 16:17:45          0 33633333333                  20 other_mms_phone
  24-09-2009 17:45:07          0 33644444444                  20 other_mms_phone
  07-10-2009 10:45:49          0 12312312312                  20 legacyphone
  07-10-2009 11:46:38          0 59320000043                  20 other_mms_phone
share|improve this question

Read the fine terminfo(5) manual, it lists all terminal capabilities. Depending on the terminal, 'bold' capability might not be defined, use 'smso' then.

bold=`tput bold`; sgr0=`tput sgr0`
echo to ${bold}boldly${sgr0} go somewhere
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.