[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Shut down or leave on?



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

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: