mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-05 07:56:14 +02:00
Updated docs from master
This commit is contained in:
parent
71f10b2bf8
commit
4acc36efa9
19 changed files with 16 additions and 30 deletions
12
docs/_build/html/recipes.html
vendored
12
docs/_build/html/recipes.html
vendored
|
@ -60,15 +60,11 @@
|
|||
<div class="section" id="statistics">
|
||||
<h3>Statistics<a class="headerlink" href="#statistics" title="Permalink to this headline">¶</a></h3>
|
||||
<p>How much did I write last year?</p>
|
||||
<dl class="docutils">
|
||||
<dt>::</dt>
|
||||
<dd>jrnl -from “jan 1 2013” -until “dec 31 2013” | wc -w</dd>
|
||||
</dl>
|
||||
<div class="highlight-python"><pre>jrnl -from "jan 1 2013" -until "dec 31 2013" | wc -w</pre>
|
||||
</div>
|
||||
<p>Will give you the number of words you wrote in 2013. How long is my average entry?</p>
|
||||
<dl class="docutils">
|
||||
<dt>::</dt>
|
||||
<dd>expr $(jrnl –export text | wc -w) / $(jrnl –short | wc -l)</dd>
|
||||
</dl>
|
||||
<div class="highlight-python"><pre>expr $(jrnl --export text | wc -w) / $(jrnl --short | wc -l)</pre>
|
||||
</div>
|
||||
<p>This will first get the total number of words in the journal and divide it by the number of entries (this works because <tt class="docutils literal"><span class="pre">jrnl</span> <span class="pre">--short</span></tt> will print exactly one line per entry).</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue