A Simple Function to Perform Integer/Float Arithmetic Calculation via AWK
The inbuilt BASH does not support floating point arithmetic calculations but we can easily declare a function to do so via AWK. #!/bin/bash # calc.sh function calc() { awk …