I am reading values from an text file:
input=$(head -52 file.txt | tail -1 | cut -f2 | awk '{print $3}' )
I get the 3rd word of the 52 line of the file, which is:
576.00
However I need the input value as an integer. (only 576 instead of 576.00) Then I need to divide the input value by 3 and assign the closest integer to the calculation to the variable output:
output=$((input / 3))
Of cures the line about won't work because the answer is not an integer. any ideas?