From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: Creating hline in table from source block? Date: Mon, 25 Nov 2013 21:13:57 +0100 Message-ID: <87hab0qlx6.fsf@Rainer.invalid> References: <8738mkiwhx.fsf@hornfels.zedat.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43712) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl2Xy-0001p2-4p for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 15:14:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vl2Xo-0008CN-VO for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 15:14:18 -0500 Received: from plane.gmane.org ([80.91.229.3]:60507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl2Xo-0008CA-PC for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 15:14:08 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Vl2Xn-0006gX-M0 for emacs-orgmode@gnu.org; Mon, 25 Nov 2013 21:14:07 +0100 Received: from pd9eb36db.dip0.t-ipconnect.de ([217.235.54.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Nov 2013 21:14:07 +0100 Received: from Stromeko by pd9eb36db.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Nov 2013 21:14:07 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Loris Bennett writes: > How do I get this > > #+RESULTS: > | a | b | c | d | > |-----+---+---+---| > | 1 | 2 | 3 | 4 | > | 5 | 6 | 7 | 8 | You really don't want to use a shell for that, but if you insist, this would do it: --8<---------------cut here---------------start------------->8--- #+BEGIN_SRC sh :results raw exec 3>&1 >&- ( echo "a b c d" echo "" echo "1 2 3 4" echo "5 6 7 8" ) | sed -re 's/^| /|/g' -e 's/^\|$/|-/' >&3 #+END_SRC --8<---------------cut here---------------end--------------->8--- Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Samples for the Waldorf Blofeld: http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra