Re: Script Help

From: Paul LaMadeleine (plamadeleine@LIGHTBRIDGE.COM)
Date: Mon Apr 07 2003 - 16:28:33 EDT


We use printf here a lot. something like this:

printf "%20s %3s %5s\n" $var1 $var2 $var3

Would print var1 in a space 20 characters wide, var2 in 3 character space
and var 3 in a 5 character space. The \n is needed to print a new line.

         Hope this helps,

         Paul

At 02:39 PM 4/7/2003 -0500, you wrote:
>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 archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:16:43 EDT