I use and love ledger, and wrote a Ruby wrapper a few years ago called reckon that applies Naive Bayes to your bank CSV (kind of link Mint.com) and outputs a ledger input file.
http://blog.andrewcantino.com/blog/2013/02/16/command-line-a...
http://blog.andrewcantino.com/blog/2013/02/16/command-line-a...