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 07:05:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113dbbe2ae366e05350f642e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52977) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBzSN-0002iW-EI for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 03:05:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bBzSM-0008Qi-6X for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 03:05:15 -0400 Received: from mail-oi0-x22e.google.com ([2607:f8b0:4003:c06::22e]:35619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bBzSM-0008Qc-02 for emacs-orgmode@gnu.org; Sun, 12 Jun 2016 03:05:14 -0400 Received: by mail-oi0-x22e.google.com with SMTP id w5so89100520oib.2 for ; Sun, 12 Jun 2016 00:05:13 -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 --001a113dbbe2ae366e05350f642e Content-Type: text/plain; charset=UTF-8 Correction: ":results verbatim" On Sun, Jun 12, 2016 at 2:59 AM Kaushal Modi wrote: > 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 > -- -- Kaushal Modi --001a113dbbe2ae366e05350f642e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Correction: ":results verbatim"

On Sun, Jun 12, 2016 at 2:59 AM Kausha= l Modi <kaushal.modi@gmail.com= > wrote:
Bu= mmer, found it; needed "=C2=A0:results raw" header arg

<= div class=3D"gmail_quote">
On Sun, Jun 12, 2016 at 2:46 AM = Kaushal Modi <kaushal.modi@gmail.com> 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 o= b-core and so am posting it here.

Here is the mini= mum 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 te= st.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

--

--
Kaushal Modi

--001a113dbbe2ae366e05350f642e--