I have a file like:
available_space:1232334343
capacity:123456432
total_space:1232323232
I want to calculate capacity/total_space so I need to calculate 123456432/1232323232
I can imagine I need to use something like:
cat my_file | awk -F:'FNR==2 {print$2}'
But cannot write the division itself, I'm not quiet sure about the syntax. So how I can do that?