File: properties_drawer.org

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 (37 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Example taken from the wiki
# http://orgmode.org/manual/noweb_002dref.html#noweb_002dref
* The mount point of the fullest disk
  :PROPERTIES:
  :noweb-ref: fullest-disk
  :END:

** query all mounted disks
#+BEGIN_EXAMPLE
  df \
#+END_EXAMPLE

** strip the header row
#+BEGIN_EXAMPLE
  |sed '1d' \
#+END_EXAMPLE

** sort by the percent full
#+BEGIN_EXAMPLE
  |awk '{print $5 " " $6}'|sort -n |tail -1 \
#+END_EXAMPLE

** extract the mount point
#+BEGIN_EXAMPLE
  |awk '{print $2}'
#+END_EXAMPLE

* Properties drawer example
   :PROPERTIES:
   :ARCHIVE_TIME: 2009-12-26 Sat 22:16
   :ARCHIVE_FILE: ~/brians-brain/content/projects/orgmode_parser.org
   :ARCHIVE_OLPATH: <%= @page.title %>/Future Development
   :ARCHIVE_CATEGORY: orgmode_parser
   :ARCHIVE_TODO: DONE
   :END:

These properties are metadata so they should not be visible.