On Mon, Feb 19, 2001 at 12:36:52AM -0500, Anthony Capone <[EMAIL PROTECTED]> wrote:
| I need something that I can call in a script...bc would be kind of hard to
| do, I think....
You think wrong:
foo=`echo "2 / 3" | bc`
Quotes not needed for that example, but if you were doing multiplication...
And bc has functions and loops and all that, so if you're doing anything
nontrivial it's better than expr.
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
I do find these commercials entertaining, but then again, I own a Slinky.
- [EMAIL PROTECTED] (Andy Tefft)
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list