On Thu, 5 Jun 2025 at 20:22, Duncan Roe <duncan_...@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