Elliott Hughes | 15fc6a2 | 2014-01-09 10:30:06 -0800 | [diff] [blame] | 1 | #!/bin/awk -f |
2 | # Filter out redundant "*32" symbols. | ||||
3 | |||||
4 | BEGIN { | ||||
5 | s="" | ||||
6 | c="" | ||||
7 | } | ||||
8 | |||||
9 | NF == 3 && $2 ~ /^"[^",]*",$/ { | ||||
10 | if ($2 == s && $3 == c) | ||||
11 | next | ||||
12 | s = $2 | ||||
13 | sub(/",$/, "32\",", s) | ||||
14 | c = $3 | ||||
15 | } | ||||
16 | |||||
17 | { | ||||
18 | |||||
19 | } |