Ledgerbil has a sorting feature: https://github.com/scarpent/ledgerbil
The only change it will make to data is to normalize spacing between transactions, using one space. Ledgerbil doesn't know about a lot of ledger features but it should still be able to sort any file. Please let me know if any issues and I'll be happy to attempt a fix! On Friday, December 6, 2019 at 5:19:16 AM UTC-6, Christian Pinedo Zamalloa wrote: > > Hi! > I would like to know if you have any shell, awk... script to sort the > order of ledger transactions by date. > > Initially I tried to sort transactions per date by using "ledger > print", however I suffered some issues with the output generated by > "ledger print" command: > - some lot data disappears > - lot dates are translated to a format not valid (it seems to be > solved in this commit > > https://github.com/ledger/ledger/commit/95237941b66931978953fadb390e1b442ed63175 > > ) > > I am a vim user, so I don't use the emacs' mode for ledger. > > Regards! > > -- > Christian Pinedo Zamalloa (zako) > PGP keyID: 0xdb577d4ee6ffbd55 > PGP Fgprt: A895 7C11 84F6 30B4 4938 32A4 9306 DFD0 CDE4 B542 > -- --- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/19292235-93c0-4fdf-9d69-b3799b29402f%40googlegroups.com.
