[root@centos8 tmp]# vi sales.awk [root@centos8 tmp]# cat sales.awk # BEGIN BEGIN { FS="ยง" } # TABLE $1 !~ /^#/ && $1 !~ /^$/ { sales[$1]+=$2 } # END END { for (pc in sales) printf("PC Type : %s \t Sales (06+13+83) : %10d\n",pc,sales[pc]); }