emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Johann Spies
Subject: [O] sh - script: how to control the output.
Date: Mon, 2 Nov 2015 09:35:36 +0200

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:

| Column   | Type    | Modifiers |
|----------+---------+-----------|
| id       | integer |           |
| subject  | citext  |           |
| articles | bigint  |           |


Regards
Johann
--
Because experiencing your loyal love is better than life itself,
my lips will praise you.  (Psalm 63:3)

reply via email to

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