input命令+文件中的粗体特定string

请咨询如何使用tput命令从以下文件中加粗“Date&Time”数字(我有Solaris机器)

比如我只想大胆的“24-09-2009 16:17:45”等所有其他date和时间

tput将写入我的ksh脚本

thx的支持

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 

阅读精美的terminfo(5)手册,它列出了所有的terminalfunction。 取决于terminal,“粗体”function可能没有定义,那么使用“smso”。

 bold=`tput bold`; sgr0=`tput sgr0` echo to ${bold}boldly${sgr0} go somewhere