On Thu, Jun 24, 2021 at 9:17 AM Peng Yu <pengyu.ut@gmail.com> wrote:
> The following won't work, as it removes empty fields.
Would using a CSV be an option rather than a TSV? If so you could use the
csv builtin:
$ enable -f /usr/lib/bash/csv csv
$ csv -a foo 'a,,b'
$ declare -p foo
declare -a foo=([0]="a" [1]="" [2]="b")