~/Desktop/org/static-blog/2021/20211204072538-ledger_hledger.html
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<link rel="alternate"
type="application/rss+xml"
href="http://ladykosha.ru/rss.xml"
title="RSS feed for http://ladykosha.ru/">
<title>ledger hledger</title>
<meta property="og:title" content="ledger hledger">
<meta property="og:type" content="article" >
<meta property="og:url" content="http://ladykosha.ru/2021/20211204072538-ledger_hledger.html">
<meta name="author" content="Agnessa Bukowska">
<meta name="follow_it-verification-code" content="hezmtDDR3LLNYfgUM2kU"/>
<meta name="yandex-verification" content="58d77bedb0543435" />
<meta name="yandex-verification" content="f29a778a78424ae5" />
<link href="/static/style.css" rel="stylesheet" type="text/css" />
<link rel="icon" type="image/png" sizes="150x150" href="/static/bonsai-small.png">
</head>
<body>
<div id="preamble" class="status"><div class="header">
<div style="float:right"><a href="http://ladykosha.ru"><img src="
" alt="Цифровой садик - приветственная"/></a><br><form method="get" action="https://duckduckgo.com" style="display:inline; float:right; text-align: right"><input type="hidden" name="sites" value="ladykosha.ru"/><input type="text" name="q" placeholder="Search on duckduckgo" aria-label="Search ladykosha.ru on DuckDuckGo"/><button type="submit">Search</button></form></div>
<p><a href="http://ladykosha.ru">Цифровой садик - приветственная</a> |
<a href="http://ladykosha.ru/archive.html">Полный список всего, что тут есть</a> |
<a href="http://ladykosha.ru/rss.xml">RSS</a> |
<a href="https://follow.it/m2wkzr?action=followPub">Подписаться через follow.it</a></p>
</div></div>
<div id="content">
<div class="post-date">03.02.2026</div><h1 class="post-title"><a href="http://ladykosha.ru/2021/20211204072538-ledger_hledger.html">ledger hledger</a></h1>
<nav id="table-of-contents" role="doc-toc">
<h2>Содержание</h2>
<div id="text-table-of-contents" role="doc-toc">
<ul>
<li><a href="#org1bb6cf6">Про org-babel</a></li>
<li><a href="#org3e07132">Всякие ссылки</a></li>
</ul>
</div>
</nav>
<div class="preview" id="orgc46ffa5">
</div>
<p> <a href="https://hledger.org/5-minute-quick-start.html#setup">https://hledger.org/5-minute-quick-start.html#setup%3C/a%3E </p>
<p> Ledger is a command-line accounting tool that provides double-entry accounting based on a text journal. It provides no bells or whistles, and returns the user to the days before user interfaces were even a twinkling in their father’s CRT. What it does offer is a double-entry accounting ledger with all the flexibility and muscle of its modern day cousins, without any of the fat. An important difference between Ledger and other finance packages is that Ledger will never alter your input file. You can create and edit that file in any way you prefer, but Ledger is only for analyzing the data, not for altering it. </p>
<p> The basic syntax of any ledger command is: </p> <pre class="example" id="orgc09165d"> ledger [OPTIONS…] COMMAND [ARGS…] </pre>
<p> Command options must always precede the command word. After the command word there may appear any number of arguments. For most commands, these arguments are regular expressions that cause the output to relate only to transactions matching those regular expressions. For the entry command, the arguments have a special meaning, described below. </p>
<p> The regular expressions arguments always match the account name that a transaction refers to. To match on the payee of the entry instead, precede the regular expression with ‘–’. For example, the following balance command reports account totals for rent, food and movies, but only those whose payee matches Freddie: </p>
<pre class="example" id="org206de27"> ledger bal rent food movies – freddie </pre>
<p> Для баланса без виртуальных транзакций и с переводом всего в основные единицы измерения: </p> <pre class="example" id="orgaf9150c"> ledger –real -B bal </pre>
<p> The totals reported by the balance command are only the topmost parent accounts. To see the totals of all child accounts as well, use the -s option: </p>
<pre class="example" id="orgd391add"> ledger –real -B -s bal </pre>
<p> Sometimes you may have a lot of children, nested very deeply, but only want to report the first two levels. This can be done with a display predicate, using a value expression. In the value expression, T represents the reported total, and l is the display level for the account: </p>
<pre class="example" id="org2300d75"> ledger –real -B -d "T&l<=2" bal </pre>
<p> To review the display predicate used — T&l<=2 — this rather terse expression means: Display an account only if it has a non-zero total (T), and its nesting level is less than or equal to 2 (l<=2). </p> <div id="outline-container-org1bb6cf6" class="outline-2"> <h2 id="org1bb6cf6">Про org-babel</h2> <div class="outline-text-2" id="text-org1bb6cf6"> <p> Чтобы был ob-ledger, надо org-contrib. </p> <ul class="org-ul"> <li><a href="20201113222648-org_babel.html#ID-fe0ee9b1-ae7a-4a06-b56e-b16540abfef9">org-babel</a></li> </ul> <p> Пример про получение результатов одного блока в другом. В смысле, это к теме устроения файла. Закомментировано, а то орг запутывается. </p> <pre class="example" id="org529fd79">
</pre> </div> </div> <div id="outline-container-org3e07132" class="outline-2"> <h2 id="org3e07132">Всякие ссылки</h2> <div class="outline-text-2" id="text-org3e07132"> <ul class="org-ul"> <li><a href="http://ledger-cli.org/">http://ledger-cli.org/%3C/a%3E <span class="timestamp-wrapper"><span class="timestamp"> </span></span> - занятно отметить, как давно попала на эту тему более-менее впервые.</li> </ul>
<ul class="org-ul"> <li><a href="https://hledger.org/ledger.html">https://hledger.org/ledger.html%3C/a%3E - о разнице и совместимости</li> <li><a href="https://hledger.org/">https://hledger.org/%3C/a%3E%3C/li%3E <li><a href="https://hledger.org/accounting.html">https://hledger.org/accounting.html%3C/a%3E%3C/li%3E <li><a href="file:///usr/share/doc/ledger/ledger3.html">file:///usr/share/doc/ledger/ledger3.html</a></li> <li><a href="http://plaintextaccounting.org/">http://plaintextaccounting.org/%3C/a%3E%3C/li%3E <li><a href="http://matthewturland.com/category/ledger/">http://matthewturland.com/category/ledger/%3C/a%3E%3C/li%3E <li><a href="https://ledger-ru.github.io/tutorial/">https://ledger-ru.github.io/tutorial/%3C/a%3E%3C/li%3E <li><a href="http://s.arboreus.com/search/label/ledger">http://s.arboreus.com/search/label/ledger%3C/a%3E%3C/li%3E <li><a href="https://bronevichok.ru/blog/2014/09/27/personal-finances-with-ledger-1/">https://bronevichok.ru/blog/2014/09/27/personal-finances-with-ledger-1/%3C/a%3E или <a href="https://habrahabr.ru/post/308434/">https://habrahabr.ru/post/308434/%3C/a%3E%3C/li%3E </ul>
<p> О финансах вообще </p>
<ul class="org-ul"> <li><a href="http://www.kraynov.com/personal-finance/">http://www.kraynov.com/personal-finance/%3C/a%3E%3C/li%3E </ul> </div> </div> <div class="taglist"></div> <div id="comments"><div id="archive"> <a href="http://ladykosha.ru/archive.html">Все посты</a> </div></div></div> <div id="postamble" class="status"><hr/> <p>Если у вас есть мысли, комментарии, предложения или отклики по поводу этой страницы или этого цифрового сада в целом, напишите мне сообщение на me (at) ladykosha.ru. Мне ооочень интересно!</p> <p><a href="https://www.tinkoff.ru/rm/r_rPDocymHIE.xYSKzlSabZ/jOUG568383">Задонатить</a>.</p> <hr/> <p> <a href="https://xn--sr8hvo.ws/%F0%9F%8D%8A%F0%9F%92%9E%F0%9F%9A%BA/previous">←</a> An IndieWeb Webring 🕸💍 <a href="https://xn--sr8hvo.ws/%F0%9F%8D%8A%F0%9F%92%9E%F0%9F%9A%BA/next">→</a></p> </div> </body> </html>