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: Mon, 11 Dec 2017 07:36:17 -0800	[thread overview]
Message-ID: <m21sk1qnta.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <1512985032.3675.0.camel@gmail.com>

I think you just put Listing 7 in a file called py_org_table.py on your
Python path, or you could just integrate it into the script.

ST writes:

> Thank you very much!
>
> Is py_org_table.py part of a bigger library? Where can I find it?
>
> Thank you!
>
>
> On Sun, 2017-12-10 at 18:12 -0800, John Kitchin wrote:
>> 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 15:36 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
2017-12-11  9:37   ` ST
2017-12-11 15:36     ` John Kitchin [this message]

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