← 返回命令列表

Linux command

hledger-print 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Print all transactions

hledger print

Print specific account

hledger print [account-pattern]

Print date range

hledger print -b [2024-01-01] -e [2024-12-31]

Print with cost

hledger print --cost

Output as CSV

hledger print -O csv

说明

hledger print outputs transactions from the journal. It reproduces transaction records, optionally filtered or transformed. The command is useful for extracting subsets of transactions or converting between formats. Output is valid journal syntax.

参数

-b _DATE_
Begin date.
-e _DATE_
End date.
--cost
Convert to cost basis.
--explicit
Make amounts explicit.
-O _FORMAT_
Output format (txt, csv).
--help
Display help information.

FAQ

What is the hledger-print command used for?

hledger print outputs transactions from the journal. It reproduces transaction records, optionally filtered or transformed. The command is useful for extracting subsets of transactions or converting between formats. Output is valid journal syntax.

How do I run a basic hledger-print example?

Run `hledger print` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -b _DATE_ do in hledger-print?

Begin date.