File: properties_drawer.html

package info (click to toggle)
ruby-org 0.9.12-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,852 kB
  • sloc: ruby: 3,044; lisp: 50; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<h1>The mount point of the fullest disk</h1>
<h2>query all mounted disks</h2>
<pre class="example">
df \
</pre>
<h2>strip the header row</h2>
<pre class="example">
|sed &#39;1d&#39; \
</pre>
<h2>sort by the percent full</h2>
<pre class="example">
|awk &#39;{print $5 &quot; &quot; $6}&#39;|sort -n |tail -1 \
</pre>
<h2>extract the mount point</h2>
<pre class="example">
|awk &#39;{print $2}&#39;
</pre>
<h1>Properties drawer example</h1>
<p>These properties are metadata so they should not be visible.</p>