Updated docs from master

This commit is contained in:
Manuel Ebert 2014-01-26 12:25:14 +01:00
parent 71f10b2bf8
commit 4acc36efa9
19 changed files with 16 additions and 30 deletions

View file

@ -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 &#8220;jan 1 2013&#8221; -until &#8220;dec 31 2013&#8221; | 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 &#8211;export text | wc -w) / $(jrnl &#8211;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>