I have the following command in my bash script:
printf '\n"runtime": %s' "$(bc -l <<<"($a - $b)")"
I need to run this script on around 100 servers and I have found that on few of them bc
is not installed. I am not admin and cannot install bc
on missing servers.
In that case, what alternative can i use to perform the same calculation? Please let me know how the new command should look like