mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-09 00:15:48 +03:00
11 lines
452 B
Plaintext
11 lines
452 B
Plaintext
# Conversion from CSV to Ledger
|
|
rm -rf input.rules; printf 'base-account Assets:MyAccount\ndate-field 0\ndate-format %%d/%%Y/%%m\ndescription-field 1\namount-field 2\ncurrency $\n' > input.rules ; printf '10/2009/09,Flubber Co,50' > input.csv$$ ; bin/hledger convert input.csv$$ ; rm -rf input.rules *$$
|
|
>>>
|
|
2009/09/10 Flubber Co
|
|
income:unknown $-50
|
|
Assets:MyAccount $50
|
|
|
|
>>>2
|
|
using conversion rules file input.rules
|
|
>>>=0
|