Quote:
Originally Posted by
RavinderSingh13
Hello,
Please let know the Output you are expecting, including the input.
Thanks,
R. Singh
Dear R.Singh,
The input is a 100 column long data.
I am trying to divide column 5 with 6, 7 with 8, 9 with 10 and 11 with 12.
If columns 6,8,10 or 12 has zero, awk is complaining that fatal division by zero was attempted.
So, I thought I will read the 6,8,10 and 12th columns first, and if there is a zero, I would make the division output to be zero.
But, except for the division of column 5 with 6, all others are giving correct output. I don't know why this particular division is printing only zeroes even when column 6 is not zero.