From 557ef398e69815c99b11aba0eb96b902089bc080 Mon Sep 17 00:00:00 2001 From: thdox Date: Sat, 21 Feb 2015 19:11:36 +0100 Subject: Update to be compliant with file & with_file. --- doc/ledger3.texi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'doc/ledger3.texi') diff --git a/doc/ledger3.texi b/doc/ledger3.texi index 4c108331..81777d09 100644 --- a/doc/ledger3.texi +++ b/doc/ledger3.texi @@ -4645,21 +4645,23 @@ and @option{--rich-data} which stores additional metadata as tags. Using the two first lines of the above csv file, -@smallexample @c input:DD85579 +@smallexample @c file:B2EA7E8 +,date,payee,note,amount,,,code, 767718,12/13/2011,"Withdrawal","ACE HARDWARE 16335 S HOUGHTON RD",-8.80,,00001640.04,, 767406,12/13/2011,"Withdrawal","ACE HARDWARE 16335 S HOUGHTON RD",-1.03,,00001648.84,, @end smallexample and launching the below command, -@smallexample @c command:DD85579 +@smallexample @c command:B2EA7E8,with_file:download.csv $ ledger convert download.csv --input-date-format "%m/%d/%Y" \ - --invert --account Assets:MyBank --rich-data + --invert --account Assets:MyBank --rich-data \ + --file sample.dat --now=2012/01/13 \ @end smallexample you will get the result: -@smallexample @c result:DD85579 +@smallexample @c output:B2EA7E8 2011/12/13 * Withdrawal ;ACE HARDWARE 16335 S HOUGHTON RD ; CSV: 767718,12/13/2011,"Withdrawal","ACE HARDWARE 16335 S HOUGHTON RD",-8.80,,00001640.04,, ; Imported: 2012/01/13 -- cgit v1.2.3