From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: data tables produced by shell source block Date: Wed, 12 Mar 2014 10:40:45 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNpxW-0002ql-T1 for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 16:41:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNpxQ-0007KZ-NR for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 16:41:02 -0400 Received: from oproxy18-pub.mail.unifiedlayer.com ([69.89.17.20]:43502) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1WNpxQ-0007KQ-GB for emacs-orgmode@gnu.org; Wed, 12 Mar 2014 16:40:56 -0400 In-Reply-To: (Ken Mankoff's message of "Wed, 12 Mar 2014 16:08:18 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff Cc: org mode Aloha Ken, Running emacs -Q, initialized to point to an up-to-date Org mode, this works for me. I evaluate this source code block so babel recognizes shell source code blocks: #+BEGIN_SRC emacs-lisp (org-babel-do-load-languages 'org-babel-load-languages '((sh . t))) #+END_SRC #+RESULTS: | (sh . t) | Then run the directories source code block to get this: #+RESULTS: directories | 184 | Documents | | 548528 | Downloads | | 3852088 | Library | | 10208696 | Mail | | 0 | Movies | ... Perhaps you have something in an initialization file? hth, Tom Ken Mankoff writes: > 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 > > > Can anyone provide a working example for generating a table in shell > mode that can then be used with Python code? > > Thanks, > > -k. > > > -- Thomas S. Dye http://www.tsdye.com