From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Preventing RESULTS from being formatted as org table [ob-awk] Date: Sun, 12 Jun 2016 06:46:31 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11417e546ab63505350f22e0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47744) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBzAU-0002fQ-Qo for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 02:46:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBzAS-0003ev-A7 for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 02:46:45 -0400 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:32821) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBzAS-0003eq-4o for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 02:46:44 -0400 Received: by mail-oi0-x22e.google.com with SMTP id u201so40988483oie.0 for ; Sat, 11 Jun 2016 23:46:42 -0700 (PDT) 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 --001a11417e546ab63505350f22e0 Content-Type: text/plain; charset=UTF-8 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 --001a11417e546ab63505350f22e0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I am running the latest builds of e= macs-25 branch and org master branch.

I used ob-aw= k for the first time today and was surprised to see that the #+RESULTS: wer= e displayed as org tables. I do not know if that is due to ob-awk or ob-cor= e and so am posting it here.

Here is the minimum w= orking 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 test.tx= t =3D=3D=3D=3D=3D
emacs =C2=A0 =C2=A025.0.95
org-m= ode 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-fi= le test.txt :exports both
{ print "My", $1, "versi= on is", $2, "."}
#+END_SRC
=3D=3D=3D=3D= =3D

(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 b= elow result!

#+RESULTS:
| My | emac= s =C2=A0 =C2=A0| version | is | 25.0.95 | . |
| My | org-mode | v= ersion | is | =C2=A0 8.3.4 | . |

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

--
Kaushal Modi

--001a11417e546ab63505350f22e0--