From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4578 invoked by alias); 4 Sep 2014 09:44:36 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19053 Received: (qmail 14879 invoked from network); 4 Sep 2014 09:44:25 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7f776d000003e54-b5-54083474431e Date: Thu, 04 Sep 2014 10:44:19 +0100 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: How to do thousands grouping in zsh? Message-id: <20140904104419.76a037a1@pwslap01u.europe.root.pri> In-reply-to: <20140904085223.GA3814@localhost.localdomain> References: <20140904085223.GA3814@localhost.localdomain> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: quoted-printable X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmluLIzCtJLcpLzFFi42I5/e/4Vd0SE44Qg4YNfBY7Tq5kdGD0WHXw A1MAYxSXTUpqTmZZapG+XQJXxuyZ81kKbjFVTPzyhLWBcSJTFyMHh4SAicTME8JdjJxAppjE hXvr2boYuTiEBJYySkxZdZkdymGSaJ78HKyBRUBV4scRC5AGNgFDiambZjOC2CICohLLV2xm B7GFgeKbp3Uwg9i8AvYSt5s+gMU5Bawk5i7ezwRiCwlYSrz7/oQNxOYX0Je4+vcTE8QR9hIz r5xhhOgVlPgx+R4LiM0soCWxeVsTK4StLfHk3QXWCYwCs5CUzUJSNgtJ2QJG5lWMoqmlyQXF Sem5RnrFibnFpXnpesn5uZsYIQH4dQfj0mNWhxgFOBiVeHgfZLKHCLEmlhVX5h5ilOBgVhLh /avNESLEm5JYWZValB9fVJqTWnyIkYmDU6qBUW1R5s9NjKzePDveOyjduFfb/atpWXapD7/o lKCzH20b5r73emSnsFukv8n9X7tcnpdxlqLp/y/Xbk1kNl/I/OD+T+V25SZJqXKzVWumzPRP jVjkYrxg3/p1N4sOnN3f4ZbPuVPza+26Z/rdO3JPvpxq7u5g8ZztZGL+n7fFb5ZGnLJbwSSv rsRSnJFoqMVcVJwIAPpcRMQeAgAA On Thu, 04 Sep 2014 16:52:23 +0800 Han Pingtian wrote: > Is there any other method? =46rom 5.0.6, just released. print $(( [#_3] 299792458 )) 299_792_458 It's always "_" because it's in the same format that's understood on input. You could postprocess it print ${$(( [#_3] 299792458 ))//_/,} pws