115fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes#!/bin/awk -f 215fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes# Filter out redundant "*32" symbols. 315fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes 415fc6a2add5cc636435b120075d2c27637528b11Elliott HughesBEGIN { 515fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes s="" 615fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes c="" 715fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes} 815fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes 915fc6a2add5cc636435b120075d2c27637528b11Elliott HughesNF == 3 && $2 ~ /^"[^",]*",$/ { 1015fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes if ($2 == s && $3 == c) 1115fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes next 1215fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes s = $2 1315fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes sub(/",$/, "32\",", s) 1415fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes c = $3 1515fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes} 1615fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes 1715fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes{ 1815fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes print 1915fc6a2add5cc636435b120075d2c27637528b11Elliott Hughes} 20