Shell Scripting
hey guyz,
i need to do computation using decimal places.. any idea how to do it within a shell script? |
Novell have a neat solution using bc and a small script:
http://www.novell.com/coolsolutions/tools/17043.html This one uses awk: http://www.linuxquestions.org/questi...t-math-401093/ |
Python is good at math, including floating point. Shells (at least BASH) were never intended for such things.
(Not suggesting that Simon's suggestions won't work) |
i need to get my data from a loop..
so how do i show it? i don't understand how to use the formula.. |
Quote:
Please put code tags around your code by highlighting the code and pressing the # icon shown in post area directly above the test entry section. |
Quote:
Looks like ryanlum wants to repeat a calculation lots of times with an output each time. One would normally write the data to something nyet? Some sort of data structure, an array, a variable, or a text file. What is chosen depends on what one wants to do with the data afterwards. Disillusionist is right: time to show code. |
All times are GMT -5. The time now is 04:10 PM. |