| ||||||
| 5/25 |
| 2003/2/15-16 [Computer/SW/Languages/Perl] UID:27420 Activity:moderate |
2/14 how do people do floating point arithmetic in /bin/sh? i make
calls to bc, but i was wondering if there's a better way.
\_ I use awk.
\_ I use dc.
\_ use perl!
\_ too heavyweight
\_ doing the whole thing in perl is probably more lightweight
than doing it in sh and forking off everything you need to
fork off to actually accomplish your task.
\_ well, that naturally depends on how much floating point
arithmetic or other non-native-to-sh stuff you need to
do in the script... |