I wrote a "witty one-liner" in bash/sed: expr `sed -re : -e 's/([0-9][0-9])x/\1\1/g' -e t -e 's/[0-9]/& + /g' Valuationtxt` 0 (Note: The zero at the end is because of a trailing '+' at the end of the sed output) I admit, this is a refined version of my original script. Comments/Observa...