Re: Shut down or leave on?
On Tue, Sep 04, 2007 at 10:56:03PM -0600, Bob Proulx wrote:
> G.W. Haywood wrote:
> > ~$> echo "24 * 365.25" | bc
> > 8766.00
> >
> > but I only did this to illustrate the more compact use of some system
> > tools, in this case 'echo', 'bc' and a pipe. :)
>
> While I am a long time bc user and won't knock it I might still
> suggest alternatives just because... If we stick to integers then the
> shell does this quite well.
>
> echo $(( 24 * 365 ))
> 8760
I never think of doing that. But so handy. I learn something new every
day here. If only I didn't forget them afterwards...
--
richard
Reply to: