Skip to content

Instantly share code, notes, and snippets.

@mmiliaus
Last active December 17, 2015 19:19
Show Gist options
  • Save mmiliaus/5659311 to your computer and use it in GitHub Desktop.
Save mmiliaus/5659311 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
STDIN.each_line do |line|
m = line.match /Score="(\d+)"/
if m
puts "#{m[1]}\t1"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment