Cashbook core is a command line program that reads, analyses and reports on sets of financial transactions.  Part of the http://cashbooktoolkit.com/