I try to pipe the output of one source block to the next source block as standard input. Here an example of what I have so far:
Create stdin data: #+header: :exports code #+header: :results output #+begin_src sh echo "That goes to the next" #+end_src #+name: piped #+RESULTS: : That goes to the next Use "piped" as stdin: #+header: :exports results #+header: :stdin piped #+header: :results output #+begin_src sh VALUE=$(cat) echo "I got:" echo "$VALUE" #+end_src
My problems with this are:
I have to manually create the result of the first block by hitting
the result must be included in org-buffer (large output not needed otherwise)
the result must be named manually
Is there a workaround or better way to do this?