![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Underline | panknil | Shell Programming and Scripting | 2 | 05-03-2007 05:05 PM |
| Align Text from a file. | earlepps | UNIX for Dummies Questions & Answers | 9 | 08-01-2006 08:37 AM |
| align several fields and fill spaces with zero | DebianJ | Shell Programming and Scripting | 2 | 11-23-2005 07:51 AM |
| how to align report headers in awk | galinaqt | Shell Programming and Scripting | 3 | 10-16-2005 03:41 PM |
| underline character in vi editor | Melissa | UNIX for Dummies Questions & Answers | 2 | 02-05-2002 09:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to underline/bold and how to align output
Hi,
I work with AIX 5 and have two basic questions: 1) How do I underline/bold a word in a text output? Any way to do it with echo command? basic example: echo "FOLDER " >> folder.txt ( I wish the word FOLDER to be underlined and bold). 2) Suppose I have the following pipe delimited input file: Quality A|2|3 Instructions|4|6 Product Review|6|7 How can I fix the output below in order to have the second and third column always aligned (neat output?) Folder Name Received Read QualityA 2 3 Instructions 4(starting in same position as above) 5 Product Review 6(starting in same position as above) 7 Instead of QualityA 2 3 (using tab or space or plain awk) Instructions 4 5 Product Review 6 7 Appreciate any comments. thanks. |
|
||||
|
If you want the output of wiriting the file to a terminal ( a tty device) to have bold text, etc: you embed ANSI escape sequences in the text to turn off/on bold, turn off/on underline, etc. When you see those sequences in an editor they look like junk characters, it only works on a display terminal.
See: http://www.dee.ufcg.edu.br/~rrbrandt...nsi.html<br /> |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|