From: Greg Minshall <minshall@acm.org>
To: emacs-orgmode@gnu.org
Subject: small bash/awk script to query org-mode tables
Date: Mon, 30 Sep 2019 09:00:51 -0400 [thread overview]
Message-ID: <530588.1569848451@apollo2.minshall.org> (raw)
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.
next reply other threads:[~2019-09-30 13:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-30 13:00 Greg Minshall [this message]
2019-09-30 16:04 ` small bash/awk script to query org-mode tables Adam Porter
2019-10-01 2:02 ` Greg Minshall
2019-10-01 13:50 ` Adam Porter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=530588.1569848451@apollo2.minshall.org \
--to=minshall@acm.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).