Created
July 2, 2017 10:53
-
-
Save dominiceden/230a2aeb6934a4e6a3329cf640cfae6c to your computer and use it in GitHub Desktop.
Reverse Lloyds Banking statement CSV
This file contains hidden or 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
require 'csv' | |
in_csv = CSV.read('/Users/Dominic/Downloads/in.csv').reverse | |
CSV.open("/Users/Dominic/Downloads/out.csv", "wb") do |csv| | |
in_csv.each do |line| | |
csv << line | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because for some unknown reason, Lloyds Banking statements exported as CSV are backwards (i.e. most recent first), so they need to be reversed for importing into Crunch.