emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Greg Minshall <minshall@acm.org>
To: emacs-orgmode@gnu.org
Subject: (re-)introducing: orgtbl-query (nee org-query)
Date: Tue, 15 Oct 2019 18:40:00 -0400	[thread overview]
Message-ID: <112949.1571179200@apollo2.minshall.org> (raw)

apologies for the extra noise.

i've renamed (and moved) my small utility, now known as orgtbl-query,
that allows one to query, from the shell (command line), the contents of
an org-mode table in a file.  orgtbl-query is now located at:
----
https://gitlab.com/minshall/orqtbl-query
----
part of it has also been re-written in C for performance reasons (a
makefile is included); apologies for making it that much harder to
install.  (the awk part remains.)

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.  below are the first N lines of help output.

cheers, Greg

----
usage: orgtbl-query -h|--help
     : orgtbl-query [-f|--field column] [--complement] [--regexp]
                                        [--ignore-case] file [[table:]column] key
     : orgtbl-query -t|--tables file
     : orgtbl-query -c|--columns file [table[:]]
     : orgtbl-query -k|--keys file [[table:]column]
----
the first form prints this help message

the second form searches for KEY in FILE, TABLE, COLUMN, and prints out
any matching lines (or a single column).  tables are named, as in emacs
org-mode, "#+name: TABLE", starting in column one

the third form lists all the tables in FILE

the fourth form lists all the columns in a single TABLE in FILE

the fifth form lists the keys in column COLUMN of the table TABLE in FILE

...

             reply	other threads:[~2019-10-15 22:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-15 22:40 Greg Minshall [this message]
2019-10-16  0:52 ` (re-)introducing: orgtbl-query (nee org-query) 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=112949.1571179200@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).