accumulating data
awk 'BEGIN{sum=0}{sum+=$1}END{print sum}'
formating output
awk 'BEGIN { FS = "," } ; { print $1, ",", $2, ",", $3, ",", $4=$4*512 };' abq4.log
sed 's/]/,/g' abq.log
sed 's/block [0-9]* on/,/g' abq5.log > abqReadWrite.log