mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-03 15:16:12 +02:00
Updated docs from master
This commit is contained in:
parent
492bc3a5b4
commit
71f10b2bf8
19 changed files with 24 additions and 10 deletions
12
recipes.html
12
recipes.html
|
@ -60,11 +60,15 @@
|
|||
<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>
|
||||
<blockquote>
|
||||
<div>jrnl -from “jan 1 2013” -until “dec 31 2013” | wc -w</div></blockquote>
|
||||
<dl class="docutils">
|
||||
<dt>::</dt>
|
||||
<dd>jrnl -from “jan 1 2013” -until “dec 31 2013” | wc -w</dd>
|
||||
</dl>
|
||||
<p>Will give you the number of words you wrote in 2013. How long is my average entry?</p>
|
||||
<blockquote>
|
||||
<div>expr $(jrnl –export text | wc -w) / $(jrnl –short | wc -l)</div></blockquote>
|
||||
<dl class="docutils">
|
||||
<dt>::</dt>
|
||||
<dd>expr $(jrnl –export text | wc -w) / $(jrnl –short | wc -l)</dd>
|
||||
</dl>
|
||||
<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