From: Johann Spies <johann.spies@gmail.com>
To: emacs-orgmode@gnu.org
Subject: sh - script: how to control the output.
Date: Mon, 2 Nov 2015 09:35:36 +0200 [thread overview]
Message-ID: <CAGZ55DTS0FBs77SE2RPBe2aTCc7r=6QqQKXUb1V9hqmCs+dn=w@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2015-11-02 7:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 7:35 Johann Spies [this message]
2015-11-02 11:02 ` sh - script: how to control the output Myles English
2015-11-02 13:00 ` Johann Spies
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGZ55DTS0FBs77SE2RPBe2aTCc7r=6QqQKXUb1V9hqmCs+dn=w@mail.gmail.com' \
--to=johann.spies@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.