Re: /dev/one - why not /dev/repeat?

Vladimir Dergachev (vdergach@sas.upenn.edu)
Tue, 22 Dec 1998 18:59:08 -0500 (EST)


On Tue, 22 Dec 1998, [iso-8859-1] Lars Marowsky-Brée wrote:

> On 1998-12-22T21:58:53,
> thunder7@xs4all.nl said:
>
> > Are there advantages in having something like /dev/repeat?
>
> I suggest we implement a /dev/calculator, so everyone who needs to solve an
> equation can do it just by using cat/echo:
>
> echo 2+3*4 >/dev/calculator
> cat /dev/calculator
> 14
>

There is already a much better thing. The name is bc (big calculator).
Just do this :

echo '2+3*4' | bc

and it will print the answer. (Seriously , try it on your system).

Vladimir Dergachev

> Maybe we could make it understand RPN!
>
> Sincerely,
> Lars Marowsky-Brée
>
> --
> Lars Marowsky-Brée
> Network Management
>
> teuto.net Netzdienste GmbH - DPN Verbund-Partner
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/