Home | History | Annotate | Download | only in linux
      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 	print
     19 }
     20