[GRASS5] Updated d.vect.thematic

Hamish hamish_nospam at yahoo.com
Mon May 23 21:03:06 EDT 2005


> Try to find the spots in the code having things like 'printf("#%2X%2X'
> in the awk code and change each of those "%2X" to "%02X", note the "0"
> which means "pad left with zeros". 


yes, that's it.


COLOR=`echo "$RED:$GREEN:$BLUE" | \
   awk -F: '{printf("#%02x%02x%02x", $1, $2, $3)}'`


Note: no eval, no '\n' needed.




Hamish




More information about the grass-dev mailing list