Yes, I'm agree, but with one exception - awk(1) separates a data from a
code, hoc(1) doesn't do it. So hoc(1) can be used for plain calculation
tasks, not for  processing input files with a data.

On Wed, 12 May 2010 22:06:20 +0400, Akshat Kumar <aku...@mail.nanosouffle.net> wrote:

I've found that awk(1) is more useful
(rather, more powerful) for doing
programmed computations (number
crunching, etc.), where hoc(1) is
more of a convenience for basic
calculations.


Best,
ak

On Wed, May 12, 2010 at 3:41 AM, Alexander Sychev <santu...@gmail.com> wrote:
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 <rudolf.syk...@gmail.com>
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


--
Best regards,
 santucco




--
Best regards,
  santucco

Reply via email to