perl -ane '$total += $F[9]; END {print $total}' sem.log #### Can't find string terminator "'" anywhere before EOF at -e line 1.