emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: James Kang <marchkang@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: how i pass output of one codeblock as iinput of another codeblock without manual copy paste
Date: Tue, 3 Jul 2012 11:10:28 -0400	[thread overview]
Message-ID: <CAHasdJU4BVNR1khJSdjJY3nfiuXN6vg8GamFCO+sEn6SKwxZNA@mail.gmail.com> (raw)
In-Reply-To: <m1zk7h925o.fsf@tsdye.com>

[-- Attachment #1: Type: text/plain, Size: 1435 bytes --]

Thank you, Tom.
It works like a charm!
Now, I will read the document one more time very carefully and throughly.

James



On Mon, Jul 2, 2012 at 7:25 PM, Thomas S. Dye <tsd@tsdye.com> wrote:

> James Kang <marchkang@gmail.com> writes:
>
> > Hi,
> >
> > I have been using code blocks with the following way to pass one's
> > output to the other's input(or input variable).
> > You can notice that I am manually copying/pasting the contents of
> > "RESULTS" and create a table with a name "my_table".
> > Now, is there anyway I can do this passing the output automatically
> > without manual copy/paste?
> >
> > Thanks
> > (using orgmode 7.8)
> >
> > #+srcname: code1
> > #+begin_src sh :exports code :results value table
> >  Some codes here
> > #+end_src
> >
> > #+RESULTS:
> > |Good results|
> > #+tblname: my_table   ### this is copied from the previous results
> manually
> > |Good results|
> > #+call: transpose(table=my_table)
> >
> > #+results: transpose(table=my_table)
> > |Good results Processed by transpose|
> Aloha James,
>
> The Org mode manual should answer your question:
>
> http://orgmode.org/manual/var.html#var
>
> You'll probably want to use #+name: code1 rather than #+srcname: code1
>
> Once you've done that, then #+call: transpose(table=code1) ought to
> work, if the Library of Babel is loaded or you have otherwise defined
> transpose.
>
> All the best,
> Tom
>
> --
> Thomas S. Dye
> http://www.tsdye.com
>

[-- Attachment #2: Type: text/html, Size: 2218 bytes --]

      reply	other threads:[~2012-07-03 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-02 21:45 how i pass output of one codeblock as iinput of another codeblock without manual copy paste James Kang
2012-07-02 23:25 ` Thomas S. Dye
2012-07-03 15:10   ` James Kang [this message]

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=CAHasdJU4BVNR1khJSdjJY3nfiuXN6vg8GamFCO+sEn6SKwxZNA@mail.gmail.com \
    --to=marchkang@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tsd@tsdye.com \
    /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).