Skip to content

Instantly share code, notes, and snippets.

@toretore
Forked from anonymous/get_transactions.rb
Last active August 29, 2015 14:15
Show Gist options
  • Save toretore/d57e300d3aee1bc51514 to your computer and use it in GitHub Desktop.
Save toretore/d57e300d3aee1bc51514 to your computer and use it in GitHub Desktop.
# /^(\d{2}\/\d{2}) (.*) (\-?\d+\.\d+)/
File.open ARGV[0], 'r' do |file|
file.each_line do |line|
if m = line.match(/^(\d{2}\/\d{2}) (.*) (\-?\d+\.\d+)/)
puts [m[1], m[2], m[3]].join(', ')
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment