The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-15-2005
clara clara is offline
Registered User
  
 

Join Date: Jun 2005
Posts: 1
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.
  #2 (permalink)  
Old 06-16-2005
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,717
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 />
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 03:05 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