Ok, so I'm trying to write something in shell and it is just pissing me off. I know it'll be much easier in perl, but I don't know perl for shit. I have the output of a script that is giving me a list of over 5500 lines, each line is composed of 2 numbers each with one digit after the decimal. So, it is in the format like this: 982.7 657.0 1263.3 551.8 24.7 54.7 I want to sort this list by the total of these two. I was trying to use something like the following: Code: # cat file | while read X Y do SUM=`expr $X + $Y` echo $SUM done I tried replacing expr with $(( $X + $Y )) which I think is the same. Either way, it is not happy about adding non-integers. I also tried to just drop the . and figured I'd just remember to divide the final numbers by 10 in my head, but it bitched about that as well. Can anyone perlish help a brother out?