summaryrefslogtreecommitdiff
path: root/scripts/convert_pa.rb
blob: 00b48317decb7b6dbcf97f6217eec917f6d66b91 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby

while STDIN.gets
  tokens = $_.chomp.encode("UTF-8", {:invalid => :replace, :undef => :replace}).split(";")
  begin
    #puts "\"#{tokens[0]}\",\"#{tokens.last}\"" if tokens[3]
    puts "#{tokens[0]},#{tokens.last}" if tokens[3]
    #puts tokens.last if tokens[3]
  rescue
  end
end