emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Passing a table to org-babel shell script
@ 2010-01-24  9:47 Matthias Teege
  2010-02-06 18:33 ` Eric Schulte
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Teege @ 2010-01-24  9:47 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I try to use a org-mode table as input to an shell script. It works, if
I use a Table with one column.

#+tblname: sec
| Hello World |

#+begin_src sh :var table=sec
cat <<EOF
$table
EOF
#+end_src

#+results:
: [[Hello World]]

But if I use more then one column, If got an error:

#+tblname: sec
| Hello | World |

#+begin_src sh :var table=sec
cat <<EOF
$table
EOF
#+end_src

#+results:
| sh: Zeile 1: World]]: command not found. |

It looks like, then Shell interprets the seperator "|" as pipe.

How do I use a multicolumn table as input for a shell script?

Many thanks
Matthias

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-07 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2010-02-07 17:20     ` Eric Schulte

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