私は、1つのソースブロックの出力を次のソースブロックに標準入力としてパイプ接続しようとします。
ここに私がこれまで持っているものの例があります:
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
私のこの問題は次のとおりです。
これを行うための回避策またはより良い方法がありますか?