-
-
Save toretore/d57e300d3aee1bc51514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /^(\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