Skip to content
Simple cli (command line interface) open source .csv (comma separated values) cleaner.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
mapping
LICENSE
README.md
usaa_sed_convert_script.sh

README.md

csv-cleaner

Simple cli (command line interface) open source .csv (comma separated values) cleaner. I use it for preparing USAA .csv files for conversion to .qif/.ofx files for import to financial software like Quicken, Quickbooks, or open source Gnucash (https://gnucash.org).

Requirements:

Mapping file(s) are included for csv2ofx, e.g mapping/usaa.py. I add a header to all my .csv files for manual editing and clarity. If you don't want to add a header, remove header insert line from your copy of the script and change your copy of the the mapping accordingly. Installing mapping files are covered at the csv2ofx site. (RTFM)

Usage:

I symlink to this file from my working directory. If you don't, be sure to use the full path when invoking the script, e.g

sed_script <.csv_filename_to_convert>

Copy, rename, edit to taste, and run the shell script for each individual account .csv file. Cat those files into one .csv master file. Convert that file using the commented csv2ofx command listed in the script. If you are lucky enough to have one .csv file for all accounts, uncomment the csv2ofx command and let the script make your .ofx file. Test your .ofx import on a dummy company. Make sure your .csv date ranges are correct as most import tools do not check for duplicate transactions. There's a provision for date ranges using cvs2ofx. (RTFM)

If it works, hurray! Share your work. Save us all some time. :)

You can’t perform that action at this time.