> > % printf "%20s\n" hello
> > hello
In my 1997 edition of "UNIX Power Tools" printf is on their CD and they
claim it's not widely built into shells. So it's a relatively recent
addition to UNIX shells.
Looks as if
% printf "%20s%s\n" "$lab" " : $value $units"
does the trick. You need the " quotes around the $lab value to allow
for embedded spaces.
I'll update the DATACUBE scripts.
Malcolm
|