From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: preserve trailing zeros in table output from shell script Date: Sun, 15 Jul 2012 08:08:43 -0600 Message-ID: <87394tyv4k.fsf@gmx.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SqPYa-0000Ri-Gi for emacs-orgmode@gnu.org; Sun, 15 Jul 2012 10:12:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SqPYZ-00049G-88 for emacs-orgmode@gnu.org; Sun, 15 Jul 2012 10:12:20 -0400 Received: from mailout-us.gmx.com ([74.208.5.67]:52773) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SqPYZ-00049C-0a for emacs-orgmode@gnu.org; Sun, 15 Jul 2012 10:12:19 -0400 In-Reply-To: (Joseph A. Cua's message of "Sat, 14 Jul 2012 08:35:21 -0400") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Joseph A. Cua" Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain "Joseph A. Cua" writes: > I have a reporting shell script that generates a tab-delimited table. > Using it within a shell code block, org parses this nicely into an org > table. But org seems to drop any trailing zeros from numeric cells. My > reporting script has already done the number formatting, so I want > trailing zeros preserved (both within org and in html export). What's > the best way? > If you want to return the numbers as strings *and* you want the results to be captured as an Org-mode table, then you should use the ":results org" output type so that you have complete control over the table. For example, --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=results-org.org #+begin_src sh :results output org :exports results cat <