emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: org mode <emacs-orgmode@gnu.org>
Subject: Re: data tables produced by shell source block
Date: Wed, 12 Mar 2014 16:19:50 -0400	[thread overview]
Message-ID: <m28usfb255.fsf@gorgonzola.whoi.edu> (raw)
In-Reply-To: <m2a9cvb2od.fsf@gorgonzola.whoi.edu>


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.

  reply	other threads:[~2014-03-12 20:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-12 20:08 data tables produced by shell source block Ken Mankoff
2014-03-12 20:19 ` Ken Mankoff [this message]
2014-03-12 20:40 ` Thomas S. Dye

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=m28usfb255.fsf@gorgonzola.whoi.edu \
    --to=mankoff@gmail.com \
    --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 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).