** two blocks and a table :PROPERTIES: :DATE: 2011-08-28 :END: #+name: stuff #+begin_src sh echo 1 echo 2 echo 3 #+end_src #+name: last-of-stuff #+begin_src sh :var input=stuff echo "$input" |tail -1 #+end_src | one | | two | | 3 | #+TBLFM: @3$1='(sbe last-of-stuff)