read a&&(eval b={0..7}' [[ ${a:b} > ${z:b} ]]&&z=${z::b}${a:b:1}${z:b+1} ' echo $z . *)