Now that I'm trying to switch away from my old habits of MM/DD with the Y command, is there a way to make ledger error out if I accidentally leave off a year?
On Mon, Aug 7, 2017 at 1:10 AM, David Glasser <[email protected]> wrote: > On Tue, Aug 1, 2017 at 3:18 PM, David Glasser <[email protected]> > wrote: > > - automatically adding years to all my existing transactions (I can write > > some scripts to do it for sure, but if somebody already did then that's > nice > > :) ) > > Handled that part myself: > > $ perl -pi -e '/^Y (\d\d\d\d)/ and $y = $1; s!^(\d\d?[-/]\d\d? > )!$y/$1!' personal.ledger > > (You have to be careful with includes, but that wasn't relevant for me.) > > -- > [email protected] | langtonlabs.org | flickr.com/photos/glasser/ > -- [email protected] | langtonlabs.org | flickr.com/photos/glasser/ -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
