ฉันพยายามไพพ์เอาต์พุตของหนึ่งบล็อกแหล่งที่มากับบล็อกแหล่งถัดไปเป็นอินพุตมาตรฐาน นี่คือตัวอย่างของสิ่งที่ฉันมี:
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
ปัญหาของฉันคือ:
ฉันต้องสร้างผลลัพธ์ของบล็อกแรกด้วยตนเองโดยการกดปุ่ม
C-c C-c
ผลลัพธ์จะต้องรวมอยู่ในบัฟเฟอร์องค์กร (ไม่จำเป็นต้องใช้เอาต์พุตขนาดใหญ่)
ผลลัพธ์จะต้องตั้งชื่อด้วยตนเอง
มีวิธีแก้ปัญหาหรือวิธีที่ดีกว่าในการทำเช่นนี้?