emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* small bash/awk script to query org-mode tables
@ 2019-09-30 13:00 Greg Minshall
  2019-09-30 16:04 ` Adam Porter
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Minshall @ 2019-09-30 13:00 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-01 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-30 13:00 small bash/awk script to query org-mode tables Greg Minshall
2019-09-30 16:04 ` Adam Porter
2019-10-01  2:02   ` Greg Minshall
2019-10-01 13:50     ` Adam Porter

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).