From: Henri-Paul Indiogine <hindiogine@gmail.com>
To: emacs-org <emacs-orgmode@gnu.org>
Subject: Using Code Blocks in Org Tables
Date: Thu, 25 Aug 2011 20:49:59 -0700 [thread overview]
Message-ID: <CAG_r7O6yzJBKHAvh-R6ec7Dp=YmYsKV1HTrmFB-kWdgYx3rGVg@mail.gmail.com> (raw)
I am trying to have the final output of several bash script appear in
a summary table.
I am trying to follow this example:
http://orgmode.org/worg/org-contrib/babel/intro.html#spreadsheet
This is my test system:
-------------------------8<--------------------------->8---------------------
#+tblname: test
#+CAPTION: test
#+LABEL: tbl:test
| collection | number |
|----------------+----------------------|
| congr-hearings | (("/home/henk") (2)) |
| congr-bills | |
| pres-docs | |
| eric-docs | |
#+TBLFM: @2$2='(sbe "test-sh")
#+srcname: test-sh
#+begin_src sh :results value
x=2
echo $HOME
echo $x
#+end_src
#+results: test-sh
| /home/henk |
| 2 |
---------------------------8<--------------------->8----------------
I want actually to have only the number "2" in cell @2$2. I thought
that with ":results value" only the final output of the script, i.e.
the output of "echo $x" would appear. Instead the results of all echo
statement do appear.
What am I doing wrongly?
Thanks,
Henri-Paul
--
Henri-Paul Indiogine
Curriculum & Instruction
Texas A&M University
TutorFind Learning Centre
Email: hindiogine@gmail.com
Skype: hindiogine
Website: http://people.cehd.tamu.edu/~sindiogine
next reply other threads:[~2011-08-26 3:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-26 3:49 Henri-Paul Indiogine [this message]
2011-08-26 14:58 ` Using Code Blocks in Org Tables Eric Schulte
2011-08-26 21:35 ` Henri-Paul Indiogine
2011-08-28 14:55 ` Eric Schulte
2011-08-29 5:38 ` Henri-Paul Indiogine
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAG_r7O6yzJBKHAvh-R6ec7Dp=YmYsKV1HTrmFB-kWdgYx3rGVg@mail.gmail.com' \
--to=hindiogine@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.