From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Parsing org table from Linux command line Date: Sun, 10 Dec 2017 18:12:55 -0800 Message-ID: References: <1512936461.1644.43.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eODaW-0004gu-4w for Emacs-orgmode@gnu.org; Sun, 10 Dec 2017 21:13:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eODaV-0000HB-2w for Emacs-orgmode@gnu.org; Sun, 10 Dec 2017 21:13:00 -0500 Received: from mail-pg0-x22e.google.com ([2607:f8b0:400e:c05::22e]:35248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eODaU-0000Fz-TW for Emacs-orgmode@gnu.org; Sun, 10 Dec 2017 21:12:59 -0500 Received: by mail-pg0-x22e.google.com with SMTP id q20so9879543pgv.2 for ; Sun, 10 Dec 2017 18:12:58 -0800 (PST) In-reply-to: <1512936461.1644.43.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 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