Re: [Orgmode] Passing a table to org-babel shell script

2010-02-07 Thread Eric Schulte
Alright, I've set this up so that the table is exported to a comma or tab separated format and then saved as a string to the variable in the source code block. By default tab is used as the separator when exporting the table to a string, but this can be overridden using the :separator header argu

Re: [Orgmode] Passing a table to org-babel shell script

2010-02-07 Thread Matthias Teege
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 < $table > EOF >#+end_src > >which would result in something

Re: [Orgmode] Passing a table to org-babel shell script

2010-02-06 Thread Eric Schulte
Hi Matthias, Sorry about the slow reply. This is a good question, I have comments in-line below. Matthias Teege writes: [...] > But if I use more then one column, If got an error: > > #+tblname: sec > | Hello | World | > > #+begin_src sh :var table=sec > cat < $table > EOF > #+end_src > > #+r

[Orgmode] Passing a table to org-babel shell script

2010-01-24 Thread Matthias Teege
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