From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Parsing org table from Linux command line Date: Mon, 11 Dec 2017 07:36:17 -0800 Message-ID: References: <1512936461.1644.43.camel@gmail.com> <1512985032.3675.0.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOQ7y-0000vD-Mo for Emacs-orgmode@gnu.org; Mon, 11 Dec 2017 10:36:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOQ7x-0003ax-82 for Emacs-orgmode@gnu.org; Mon, 11 Dec 2017 10:36:22 -0500 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:37261) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOQ7x-0003aY-1V for Emacs-orgmode@gnu.org; Mon, 11 Dec 2017 10:36:21 -0500 Received: by mail-pf0-x22a.google.com with SMTP id n6so11804337pfa.4 for ; Mon, 11 Dec 2017 07:36:20 -0800 (PST) In-reply-to: <1512985032.3675.0.camel@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: ST Cc: Emacs-orgmode@gnu.org 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