miller/docs/data/ragged-csv.sh
2020-09-27 11:29:50 -04:00

8 lines
151 B
Bash
Executable file

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