all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthias Teege <matthias-omd@mteege.de>
To: emacs-orgmode@gnu.org
Subject: Re: Passing a table to org-babel shell script
Date: Sun, 7 Feb 2010 10:01:15 +0100	[thread overview]
Message-ID: <20100207090115.GA11136@cab> (raw)
In-Reply-To: <87wryqfc3b.fsf@gmail.com>

On 11:33 Sat 06 Feb, Eric Schulte wrote:

Moin,

thanks for your reply

> 1) allowing the user to specify a separator with a header argument as
>    follows
>    #+begin_src sh :var table=sec :separator ,
>      cat <<EOF
>      $table
>      EOF
>    #+end_src
>    
>    which would result in something like
> 
>    : "Hello, World"

I like this idea because it is what I would expect. In my first
"experiment", I assumed that I can use the "|" as a separator. I would
like to use a table as input form and pipe the rows to a shell script
written in org-babel. Sometimes it is easier to proccess data with
awk instead of using elisp. So my example is a bit misleading.

> 2) writing the table to a tab or comma separated file and then
>    replacing =$table= in the source block body with the path to the
>    file name, s.t. something like

IMHO it is not necessary under Unix. Reading from stdin is usual. But it
maybe different under Windows.

Many thanks
Matthias

  reply	other threads:[~2010-02-07  9:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-24  9:47 Passing a table to org-babel shell script Matthias Teege
2010-02-06 18:33 ` Eric Schulte
2010-02-07  9:01   ` Matthias Teege [this message]
2010-02-07 17:20     ` Eric Schulte

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100207090115.GA11136@cab \
    --to=matthias-omd@mteege.de \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.