I have file with 6 columns seperated by space with data
cell in out f ty le
A A1 Z A1 com 2
B A1,B Z AB com 0,2
I want to remove the 0, from 6th column getting output as
cell in out f ty le
A A1 Z A1 com 2
B A1,B Z AB com 2
I tried code
awk '{sub(/\0,.*$/,"",$6);print $1,$2,$3,$4,$5,$6}' file
But this did not worked.