Re: Script Help

From: Adams Kevin J (kevin.adams@PHS.COM)
Date: Mon Apr 07 2003 - 16:56:40 EDT


You can call awk from a script and use it's printf, or use kornshell and
typeset with left or right justification and padding, i.e.,

typeset -Rnn or typeset -Lnn

Kevin Adams

-----Original Message-----
From: John Jolet [mailto:john.jolet@FXFN.COM]
Sent: Monday, April 07, 2003 12:54 PM
To: aix-l@Princeton.EDU
Subject: Re: [aix-l] Script Help

not sure how quick and simple, but the lenght of the data in $var2 is in
${#var2}...so you could say $padding = $column_length - ${#var2}, and then
print out $var1, $padding, $var2, etc.

-----Original Message-----
From: glh@DAIRYNET.COM [mailto:glh@DAIRYNET.COM]
Sent: Monday, April 07, 2003 2:39 PM
To: aix-l@Princeton.EDU
Subject: Script Help

I'm writing a script to display variable length information in a report.
I'm having trouble lining up the variable length information in nice and
neat columns. Is there a quick and simple way for me to do this? Thanks.

This electronic message transmission, including any attachments, contains information from PacifiCare Health Systems Inc. which may be confidential or privileged. The information is intended to be for the use of the individual or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.

If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:43 EDT