Cheat Sheet速查表
跳转到主要内容

Ledger CSV 格式 速查表

本文根据 Devhints / Ledger CSV format 翻译。代码示例及版本范围沿用原文。

Ledger CSV 格式

$ ledger csv
date         , code  , desc     , account            , currency , amt     , pending/cleared , notes
"2013/09/02" , ""    , "things" , "Assets:Cash"      , "P"      , "-2000" , "*"             , ""
"2013/09/02" , ""    , "things" , "Liabilities:Card" , "P"      , "-200"  , "*"             , ""
"2013/09/02" , ""    , "things" , "Expenses:Things"  , "P"      , "2200"  , "*"             , ""
"2013/09/04" , ""    , "stuff"  , "Assets:Cash"      , "P"      , "-20"   , "*"             , ""
"2013/09/04" , ""    , "stuff"  , "Expenses:Others"  , "P"      , "20"    , "*"             , ""