I need to do the follwing with bash what is the elegant way ? to get the final $sum value
worker_machine=32
executors_per_node=3
executer=$worker_machine/$executors_per_node-1
spare=$executer X 0.07
sum=$executer-$spare ( with round the number to down )
example:
32/3 = 10 - 1 = 9
9 X 0.7 = 0.6
9 – 0.6 = 8 ( with round the number to down )
$(( ... )). The best option would be to useawkIMHO.