help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A robust but concise way to read TSV header?


From: Peng Yu
Subject: Re: A robust but concise way to read TSV header?
Date: Thu, 24 Jun 2021 10:12:24 -0500

On 6/24/21, Chet Ramey <chet.ramey@case.edu> wrote:
> On 6/24/21 10:39 AM, Jesse Hathaway wrote:
>> 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:
>
> If you want a "tsv" builtin, it would take less than five minutes to modify
> the csv builtin to do what you need.
>
> Or extend it so you can specify the delimiter using an option.

I want to avoid my own tsv builtin at this moment.

Native bash code (better than the one that I showed, if available) is preferred.

-- 
Regards,
Peng



reply via email to

[Prev in Thread] Current Thread [Next in Thread]