Subj : GETSTR
To   : Willowolf
From : Digital Man
Date : Thu Jan 17 2002 04:27 am

RE: GETSTR
BY: Willowolf to Digital Man on Thu Jan 17 2002 07:00 am

> [Reply to]: GETSTR
> [Typed by]: Digital Man to Willowolf on Thu Jan 17 2002
>  02:46 am
>
>  >  >      But, when the STR is printed, have it output all 40 characters, e
>  >  > all aren't used.  Is there a way to do this in Baja?  So, instead of:
>  >
>  > printf "%40s" str
>  >
>  > -Rob
>
> I knew there was a way!  Thanks again Rob!
>
> This works good, but it prints out the string after the spaces like so:
>
>       Name One -                      comment -           hours
>       Name Two -               second comment -           hours
>     Name Three -                third comment -           hours
>
> The '-' being the beginning of the next string.
>
> Is there a way to have it print before the left over spaces liks so?:
>
> Name One       - comment                      - hours
> Name Two       - second comment               - hours
> Name Three     - third comment                - hours

printf "%-40s" str

-Rob

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net