emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] small bash/awk script to query org-mode tables


From: Greg Minshall
Subject: [O] small bash/awk script to query org-mode tables
Date: Mon, 30 Sep 2019 09:00:51 -0400

hi, all.

for a project, i wanted to be able to easily query the contents of a
table in an org-mode document from the shell.  in case that it might be
useful to others, the result is:
----
https://gitlab.com/minshall/org-query
----

the beginning of the help output is:
----
usage: org-query -h|--help
     : org-query [-f|--field column] [--complement] [--regexp] file 
[[table:]column] key
     : org-query -t|--tables file
     : org-query -c|--columns file [table[:]]
     : org-query -k|--keys file [[table:]column]
----

it works for my use cases (obviously), but i'm sure it will break, or be
feature-deficient, for those of others.  i'd be happy to try to fix
bugs.

cheers, Greg

ps -- if anyone knows how to get gitlab.com to recognize org-mode
footnotes (in particular, of the [fn::"this is a footnote"]-variety), my
readme.org file would be pleased to hear.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]