[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] data tables produced by shell source block
From: |
Ken Mankoff |
Subject: |
Re: [O] data tables produced by shell source block |
Date: |
Wed, 12 Mar 2014 16:19:50 -0400 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
Ohp. Nevermind. Sorry for the noise. I have a default of ":results
output", and when I set ":results value" it works.
-k.
On 2014-03-12 at 16:08, Ken Mankoff wrote:
> The babel sh example here:
> http://orgmode.org/worg/org-contrib/babel/intro.html#source-code-execution
>
> says (and shows), "Babel automatically converts the output into an
> Org-mode table.". When I run that same code
>
> #+name: directories
> #+begin_src sh :results replace
> cd ~ && du -sc * |grep -v total
> #+end_src
>
> I do not get a table. Rather, I get the results in two columns and a
> "#+begin_example"
>
> #+RESULTS: directories
> #+begin_example
> <etc>
>
> Can anyone provide a working example for generating a table in shell
> mode that can then be used with Python code?
>
> Thanks,
>
> -k.