diff options
author | Jim Kalafut <jim@kalafut.net> | 2016-06-17 21:25:38 -0700 |
---|---|---|
committer | Jim Kalafut <jim@kalafut.net> | 2016-06-17 21:25:38 -0700 |
commit | 5cf492608419dafce1053c35155a32bc96fb3cd6 (patch) | |
tree | 82951cec6863882bb54d3dbee2d3b3f38ac37942 /doc/ledger3.texi | |
parent | fcf16d035e9d61ed903499d0e72985970aec9170 (diff) | |
download | fork-ledger-5cf492608419dafce1053c35155a32bc96fb3cd6.tar.gz fork-ledger-5cf492608419dafce1053c35155a32bc96fb3cd6.tar.bz2 fork-ledger-5cf492608419dafce1053c35155a32bc96fb3cd6.zip |
Fix documentation typos in section 4.9 (Archiving)
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: |