From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: text/plain; charset="utf-8"; format=flowed; delsp=yes To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> References: Date: Wed, 12 May 2010 14:41:03 +0400 MIME-Version: 1.0 From: Alexander Sychev Message-ID: In-Reply-To: User-Agent: Opera Mail/10.10 (Linux) Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] hoc output format Topicbox-Message-UUID: 1f04d74e-ead6-11e9-9d60-3106f5b1d025 Hello! IFAIK, hoc(1) hasn't got such possibility. awk(1) can help: $ hoc -e PI | awk '{printf "%2.2f", $0}' 3.14 On Wed, 12 May 2010 14:24:57 +0400, Rudolf Sykora =20 wrote: > Hello everyone, > > is there any way to control the output format of hoc(1), i.e. e.g. the > number of decimal places printed? > > Thanks > Ruda --=20 Best regards, santucco