miller/doc/data/ragged-csv-2.sh
2016-06-09 17:42:47 -07:00

6 lines
126 B
Bash

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