miller/docs6/docs/data/ragged-csv-2.sh

6 lines
126 B
Bash

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