Thread
:
BASH script bug?, simple maths...
View Single Post
retsaw
2012-04-27 , 15:37
Posts: 701 | Thanked: 585 times | Joined on Sep 2010 @ London, England
#
4
You can use bc to do the maths (you may need to install it)
Code:
a=$(echo "( $a * 60 ) + $x" | bc )
Quote & Reply
|
The Following 8 Users Say Thank You to retsaw For This Useful Post:
anthonie
,
don_falcone
,
Estel
,
jamiefuller
,
misiak
,
nicolai
,
reinob
,
szopin
retsaw
View Public Profile
Send a private message to retsaw
Find all posts by retsaw