read a b c $[x={a-b,b-c,c-a},d[x]=x=x<0?-x:x] printf ${d[@]}