1BEGIN { FS = ":" } 2{ if ($1 != prev) { 3 print "\n" $1 ":" 4 prev = $1 5 } 6 printf "\t%-10s %6d\n", $2, $3 7} 8