#!/bin/bash function count() { local insert=0 local delete=0 while read line ;do current=`echo $line| awk -F',' '{printf $2}' | awk '{printf $1}'` if [[ -n $current ]]; then insert=`expr $insert + $current` fi current=`echo $line | sed -n 's/.*, //p'…