[rrd-users] Re: RV: Need help with legends

Serge Maandag serge.maandag at staff.zeelandnet.nl
Mon May 10 13:35:41 MEST 2004


> Now you are always using, for instance 10 whitespaces:
> 	hmc__________hmc 
> 	emcon__________emcom
> 
> Like "emcon" string is bigger than "hmc" you need 10 
> whitespaces for hmc and
> 8 for emc to get the legend aligned:
> 	hmc__________hmc 
> 	emcon________emcom
> 

The command line utility printf is your friend here.
printf is part of the GNU coreutils.

root at bla# printf "%12s%12s" bla1 bla2
        bla1        bla2


Serge.

-------------
Op de inhoud van dit e-mailbericht en de daaraan gehechte bijlagen is de inhoud van de volgende disclaimer van toepassing: http://www.zeelandnet.nl/disclaimer.php

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list