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

* Re: small bash/awk script to query org-mode tables
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Porter @ 2019-09-30 16:04 UTC (permalink / raw)
  To: emacs-orgmode

Greg Minshall <minshall@acm.org> writes:

> 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

Hi Greg,

That's very cool, thanks for sharing.  If I may, please consider
renaming it to something like org-table-query.sh.  org-query sounds more
generic, and like an Emacs package, so users might confused it with
something like org-ql (Org Query Language).

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

* Re: small bash/awk script to query org-mode tables
  2019-09-30 16:04 ` Adam Porter
@ 2019-10-01  2:02   ` Greg Minshall
  2019-10-01 13:50     ` Adam Porter
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Minshall @ 2019-10-01  2:02 UTC (permalink / raw)
  To: Adam Porter; +Cc: emacs-orgmode

Adam,

thanks for the feedback.  i hadn't known about org-ql -- very nice.

i've renamed the gitlab *project* org-table-query-script, though i've
kept the command, itself, the simpler org-query.  does that seem
reasonable?

if so, i'll do whatever i need to give the gitlab URL for my project
"that name" (and leave a forward pointer at the old URL, for whoever may
have copied the current URL).

cheers, Greg

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

* Re: small bash/awk script to query org-mode tables
  2019-10-01  2:02   ` Greg Minshall
@ 2019-10-01 13:50     ` Adam Porter
  0 siblings, 0 replies; 4+ messages in thread
From: Adam Porter @ 2019-10-01 13:50 UTC (permalink / raw)
  To: emacs-orgmode

Greg Minshall <minshall@acm.org> writes:

> i've renamed the gitlab *project* org-table-query-script, though i've
> kept the command, itself, the simpler org-query.  does that seem
> reasonable?

Sure, thanks.  :)

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