diff options
Diffstat (limited to 'doc/ledger3.texi')
-rw-r--r-- | doc/ledger3.texi | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi index 961cdf9e..1aa696f2 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -2714,14 +2714,17 @@ that make it very simple: @command{print}, and @command{equity}. Let's take an example file, with data ranging from year 2000 until 2004. We want to archive years 2000 and 2001 to their own file, -leaving just 2003 and 2004 in the current file. So, use -@command{print} to output all the earlier transactions to a file -called @file{ledger-old.dat}: +leaving 2002--2004 in the current file. So, use @command{print} to +output all the earlier transactions to a file called +@file{ledger-old.dat}: @smallexample -$ ledger -f ledger.dat -b 2000 -e 2001 print > ledger-old.dat +$ ledger -f ledger.dat -b 2000 -e 2002 print > ledger-old.dat @end smallexample +Note that @option{-e} limits output to transactions @emph{before} the +date specified. + To delete older data from the current ledger file, use @command{print} again, this time specifying year 2002 as the starting date: |