emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: ST <smntov@gmail.com>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Parsing org table from Linux command line
Date: Sun, 10 Dec 2017 18:12:55 -0800	[thread overview]
Message-ID: <m2374iqafs.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <1512936461.1644.43.camel@gmail.com>

Check out Listing 7 in
http://pubs.acs.org/doi/pdf/10.1021/acscatal.5b00538.

It is a pretty minimal Python script to get data from a table. You could
then use it to print column 3 to stdout maybe so it could get piped to
mail, or build up some command you can call.

ST writes:

> Hello,
>
> I have an org table and its third column are emails. I would like to
> send an email from command line (with the "mail" cli tool) to all those
> addresses.
>
> 1. How do I extract them from the table and pass to CC of "mail"?
>
> 2. Is the same possible somehow if I have several tables with different
> #+TBLNAMEs: in the same file?
>
> Thank you in advance!


-- 
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

  reply	other threads:[~2017-12-11  2:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-10 20:07 Parsing org table from Linux command line ST
2017-12-11  2:12 ` John Kitchin [this message]
2017-12-11  9:37   ` ST
2017-12-11 15:36     ` John Kitchin

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=m2374iqafs.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --cc=Emacs-orgmode@gnu.org \
    --cc=smntov@gmail.com \
    /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).