I am trying to separate two fields (where sometimes the divisor can be zero) with Awk.
I thought this would work: awk -F, '{if ($6 != 0) print $3/$6}' <some file>
But he suffocates with fatal: division by zero attempted , although I thought that the "if" condition was taken care not to be divided if field 6 is zero.
What am I missing?
awk
phileas fogg
source share