miller/docs6/data/ragged-csv-2.sh
2021-05-24 00:11:53 -04:00

6 lines
126 B
Bash

mlr --from data/ragged.csv --fs comma --nidx put '
@maxnf = max(@maxnf, NF);
while(NF < @maxnf) {
$[NF+1] = "";
}
'