bug-bash
[Top][All Lists]
Advanced

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

Re: `help cut` doesn't document what -a does


From: Martin D Kealey
Subject: Re: `help cut` doesn't document what -a does
Date: Fri, 6 Jun 2025 14:21:49 +1000

On Thu, 5 Jun 2025 at 20:22, Duncan Roe <duncan_roe@optusnet.com.au> wrote:

> On Wed, Jun 04, 2025 at 09:43:00AM -0400, Chet Ramey wrote:
> > Is it useful to combine multiple selected fields (-f) into one space-
> > separated field so `cut' can put the selected portions of each line into
> > a corresponding array element?
>
> I'm inclined to think not. Because, what if a field itself contains spaces?
>

If taking this approach, I would expect the fields to be recombined using
the same separator as was used to split them apart, since fields cannot
contain the field separator.
This would be consistent with what the “cut” utility does, and more useful
for subsequent processing.

-Martin


reply via email to

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