all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* sh - script: how to control the output.
@ 2015-11-02  7:35 Johann Spies
  2015-11-02 11:02 ` Myles English
  0 siblings, 1 reply; 3+ messages in thread
From: Johann Spies @ 2015-11-02  7:35 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1190 bytes --]

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)

[-- Attachment #2: Type: text/html, Size: 1721 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-02 13:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-02  7:35 sh - script: how to control the output Johann Spies
2015-11-02 11:02 ` Myles English
2015-11-02 13:00   ` Johann Spies

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.