Monday, March 22, 2010

Sum of Digits of a Number

expr `echo "123671" | sed -e 's/[0-9]/ + &/g' -e 's/^ +//g'`

No comments:

Post a Comment