emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] sh - script: how to control the output.


From: Myles English
Subject: Re: [O] sh - script: how to control the output.
Date: Mon, 02 Nov 2015 11:02:45 +0000
User-agent: mu4e 0.9.13; emacs 24.5.1

Hello Johann,

Johann Spies writes:

> In the normal shell, I can do:
>
>  echo '\d wos.wos_papers_by_subject_mv' | psql -h localhost -p 63334
> book_citation | grep '[+|]'
>
> and get the output:
>
>   Column  |  Type   | Modifiers
> ----------+---------+-----------
>  id       | integer |
>  subject  | citext  |
>  articles | bigint  |
>
> When I try this in org-mode:
>
>
> #+BEGIN_SRC sh
>
> echo '\d wos.wos_papers_by_subject_mv' | psql -h localhost -p 63334
> book_citation | grep '[+|]'
>
>
> #+END_SRC
>
> #+results:
> | Column                           |   |   | Type    |   |   | Modifiers |
> | ----------+---------+----------- |   |   |         |   |   |           |
> | id                               |   |   | integer |   |   |           |
> | subject                          |   |   | citext  |   |   |           |
> | articles                         |   |   | bigint  |   |   |           |
>
> What should I do to get the following in org-mode as a result:

You could try out some of the options for the ":results" header
argument, as described here:

http://orgmode.org/manual/results.html#results

Myles



reply via email to

[Prev in Thread] Current Thread [Next in Thread]