|
From: | Chet Ramey |
Subject: | Re: A robust but concise way to read TSV header? |
Date: | Thu, 24 Jun 2021 10:50:29 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
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. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |