# Here your code ! echo "54321"|sed -e 's/\([0-9]\)/\1\n/g'|sort|tac|echo -n $(cat -)|sed -e 's/ //g'|echo $(cat -)