On 01/28/15 15:46, phi wrote:
Ha shorter :) CX48$ while read -N 1 c ; do printf '%02x\n' "'$c'" ; done <yo 48 69 20 54 68 65 72 65 21 0a
Not shorter but easthetical :) No printf formating evalutation, if the 2 digit output is not fatal.
CX48$ typeset -i 16 x CX48$ while read -N 1 c ; do x="'$c'" && echo ${x#*#}; done <yo 48 69 20 54 68 65 72 65 21 a _______________________________________________ ast-developers mailing list ast-developers@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-developers