Skip to content

Commit

Permalink
Merge pull request ledger#457 from kalafut/next
Browse files Browse the repository at this point in the history
Fix documentation typos in section 4.9 (Archiving)
  • Loading branch information
enderw88 authored Jun 18, 2016
2 parents fcf16d0 + 5cf4926 commit 7fb907f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions doc/ledger3.texi
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 7fb907f

Please sign in to comment.