How can one handle empty "" values when splitting so that those would not be discarded on the produced array of values? In the example below the second line "d","","f" has empty string on the middle that will be discarded when split.
This becomes a problem when one tries to pick fields from the split with the index as _split[1] will give b on first row but f on the second which are of different column values on input.
echo -e '"a","b","c"\n"d","","f"' | agrind '* | split'
[_split=[a, b, c]]
[_split=[d, f]]
The split could also support the nodrop directive?
Is there any solution to get around this for now?
How can one handle empty
""values when splitting so that those would not be discarded on the produced array of values? In the example below the second line"d","","f"has empty string on the middle that will be discarded when split.This becomes a problem when one tries to pick fields from the split with the index as
_split[1]will givebon first row butfon the second which are of different column values on input.The split could also support the
nodropdirective?Is there any solution to get around this for now?