Sujet : Re: Breaking a table of record rows into an array
De : arnold (at) *nospam* freefriends.org (Aharon Robbins)
Groupes : comp.lang.awkDate : 13. Mar 2024, 10:21:44
Autres entêtes
Organisation : non
Message-ID : <65f17028$0$707$14726298@news.sunsite.dk>
References : 1 2 3 4
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <
usqkgn$he7u$2@dont-email.me>,
Ed Morton <
mortonspam@gmail.com> wrote:
the effect of setting `NF` is
undefined behavior per POSIX and so will do different things in
different awk variants and even in 1 awk variant can behave differently
depending on whether you're setting it to a higher or lower than
original value
This is not true. The effect of setting NF was well defined
by the original awk book and also in POSIX.
Decreasing NF throws away fields. Increasing NF adds the
intervening fields with the null string as their values
and rebuilds the record.