[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Input line splitting and OFS
From: |
arnold |
Subject: |
Re: Input line splitting and OFS |
Date: |
Sat, 16 Nov 2019 11:35:26 -0700 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Hi.
"address@hidden" <address@hidden> wrote:
> Hi,
>
> I have a question about the use of OFS as it relates to field splitting.
OFS has been used to rebuild the record since awk was first invented
in the late 1970s.
As to "why?" I would have to guess that as OFS is used for output, and
most of the time the record is rebuilt in order to output it, that
using OFS made sense.
Additionally, as of 1987's "new" awk, when FS became it a regular expression,
using FS would make even less sense.
I hope this and the other answers have helped.
Thanks,
Arnold