hledger import
Import new transactions from one or more data files to the main journal. More information: https://hledger.org/hledger.html#import.
- Import new transactions from
bank.csv, usingbank.csv.rulesto convert:
hledger import
- Simulate importing from these two files, showing what would be imported:
hledger import --dry-run
- Import new transactions from all CSV files, using the same rules for all:
hledger import --rules-file *.csv
- Show conversion errors or results while editing
bank.csv.rules:
watchexec -- hledger print
- Mark
bank.csv's current data as seen, as if already imported:
hledger import --catchup
- Mark
bank.csvas all new, as if not yet imported:
rm .latest.bank.csv
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
