From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: Preventing RESULTS from being formatted as org table [ob-awk] Date: Sun, 12 Jun 2016 06:59:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113ce040da678f05350f50dd Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBzN1-0001EF-RY for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 02:59:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBzMz-0006xO-JV for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 02:59:42 -0400 Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:36800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBzMz-0006xJ-DC for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 02:59:41 -0400 Received: by mail-oi0-x22c.google.com with SMTP id p204so167997466oih.3 for ; Sat, 11 Jun 2016 23:59:41 -0700 (PDT) In-Reply-To: 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" To: emacs-org list , eschulte@cs.unm.edu --001a113ce040da678f05350f50dd Content-Type: text/plain; charset=UTF-8 Bummer, found it; needed " :results raw" header arg On Sun, Jun 12, 2016 at 2:46 AM Kaushal Modi wrote: > Hi, > > I am running the latest builds of emacs-25 branch and org master branch. > > I used ob-awk for the first time today and was surprised to see that the > #+RESULTS: were displayed as org tables. I do not know if that is due to > ob-awk or ob-core and so am posting it here. > > Here is the minimum working example: > > (1) Launch emacs -Q > (2) Create a test.txt file with the below contents (without the ===== > lines of course): > > ===== test.txt ===== > emacs 25.0.95 > org-mode 8.3.4 > ===== > > (3) Eval (require 'ob-awk) > (4) Create this test.org file > > ===== test.org ===== > #+BEGIN_SRC awk :in-file test.txt :exports both > { print "My", $1, "version is", $2, "."} > #+END_SRC > ===== > > (5) Now with point in that src block, hit C-c C-c, answer "yes" to the > babel eval query, and you will get the below result! > > #+RESULTS: > | My | emacs | version | is | 25.0.95 | . | > | My | org-mode | version | is | 8.3.4 | . | > > So how can I generate the result as one would normally see by running awk > in the terminal, without the additional org-table pipe characters? > -- > > -- > Kaushal Modi > -- -- Kaushal Modi --001a113ce040da678f05350f50dd Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Bummer, found it; needed "=C2=A0:results raw" he= ader arg

On Sun, Jun 1= 2, 2016 at 2:46 AM Kaushal Modi <kaushal.modi@gmail.com> wrote:
Hi,

I am running the latest build= s of emacs-25 branch and org master branch.

I used= ob-awk for the first time today and was surprised to see that the #+RESULT= S: were displayed as org tables. I do not know if that is due to ob-awk or = ob-core and so am posting it here.

Here is the min= imum working example:

(1) Launch emacs -Q
(2) Create a test.txt file with the below contents (without the=C2=A0=3D=3D=3D=3D=3D lines of course):

=3D=3D=3D=3D=3D t= est.txt =3D=3D=3D=3D=3D
emacs =C2=A0 =C2=A025.0.95
org-mode 8.3.4
=3D=3D=3D=3D=3D

(3= ) Eval (require 'ob-awk)
(4) Create this test.org file

=3D=3D= =3D=3D=3D test.org =3D=3D= =3D=3D=3D
#+BEGIN_SRC awk :in-file test.txt :exports both
{ print "My", $1, "version is", $2, "."}
#+END_SRC
=3D=3D=3D=3D=3D

(5) N= ow with point in that src block, hit C-c C-c, answer "yes" to the= babel eval query, and you will get the below result!

<= div>
#+RESULTS:
| My | emacs =C2=A0 =C2=A0| version | is | 25= .0.95 | . |
| My | org-mode | version | is | =C2=A0 8.3.4 | . |

So how can I generate the result as one would= normally see by running awk in the terminal, without the additional org-ta= ble pipe characters?
--

--
Kaushal Modi

--

--
Kaushal Modi

--001a113ce040da678f05350f50dd--