Le 19/07/11 14:43, Stephan Witt a écrit :
In case of interest

QT_VERSION="4.10.3" sh -c 'v="0x0"; for i in ${QT_VERSION//./ } ; do case $i in 10) v=$v"0a" ;; 11) v=$v"0b" ;; 12) 
v=$v"0c" ;; 13) v=$v"0d" ;; 14) v=$v"0e" ;; 15) v=$v"0f" ;; *) v=$v"0"$i ;; esac ; done; echo $v'

prints 0x0040a03

Why not put it in? Another solution is to use the "printf" command. Is it portable?

JMarc

Reply via email to