miller/doc/data/ragged-csv.sh
2016-06-09 17:07:09 -07: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] = ""
}
'