I have a tab-delimited file like this but for some rows, the column number is less than what it should be (64 columns), how do I fill those cells with 0, for example (the file has 64 columns and 4750 rows it would be too big):
a b c d e
1 2 3 4 5
1
0 2
3
(column 2,3,4 has 1,2,1 number of columns corresponding and with no trailing \ts)
I want to make it
a b c d e
1 2 3 4 5
1 0 0 0 0
0 2 0 0 0
3 0 0 0 0
I have tried sed 's/\t\t/\t0\t/g' however all the solution like this requires column space to be existed there, how can I fix my table?