Re: Breaking a table of record rows into an array

Liste des GroupesRevenir à cl awk 
Sujet : Re: Breaking a table of record rows into an array
De : mortonspam (at) *nospam* gmail.com (Ed Morton)
Groupes : comp.lang.awk
Date : 12. Mar 2024, 23:21:09
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <usqkgn$he7u$2@dont-email.me>
References : 1 2 3
User-Agent : Mozilla Thunderbird
On 3/11/2024 12:41 PM, Mr. Man-wai Chang wrote:
On 1/3/2024 10:52 pm, Janis Papanagnou wrote:
>
   BEGIN { FS="] " }
   { for (i=1; i<=NF; i++)
       print $i
   }
 Use of `NF` in awk command - Stack Overflow
https://stackoverflow.com/questions/47216786/use-of-nf-in-awk-command
Why did you post that link to an apparently unrelated question which has all wrong answers (or incomplete at best - 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)?
Please always provide enough context in your posts for us to be able to understand why you're posting.
     Ed.

Date Sujet#  Auteur
11 Mar 24 * Re: Breaking a table of record rows into an array19Mr. Man-wai Chang
11 Mar 24 +- Re: Breaking a table of record rows into an array1Keith Thompson
12 Mar 24 +- Re: Breaking a table of record rows into an array1Janis Papanagnou
13 Mar 24 `* Re: Breaking a table of record rows into an array16Ed Morton
13 Mar 24  `* Re: Breaking a table of record rows into an array15Aharon Robbins
13 Mar 24   +* Re: Breaking a table of record rows into an array13Keith Thompson
13 Mar 24   i+* Re: Breaking a table of record rows into an array7Kaz Kylheku
13 Mar 24   ii`* Re: Breaking a table of record rows into an array6Keith Thompson
13 Mar 24   ii +* Re: Breaking a table of record rows into an array4Kaz Kylheku
14 Mar 24   ii i+* Re: Breaking a table of record rows into an array2Ed Morton
14 Mar 24   ii ii`- Re: Breaking a table of record rows into an array1Kaz Kylheku
14 Mar 24   ii i`- Re: Breaking a table of record rows into an array1Keith Thompson
14 Mar 24   ii `- Re: Breaking a table of record rows into an array1Kaz Kylheku
14 Mar 24   i`* Re: Breaking a table of record rows into an array5Aharon Robbins
14 Mar 24   i +- Re: Breaking a table of record rows into an array1Keith Thompson
14 Mar 24   i `* Re: Breaking a table of record rows into an array3Ed Morton
14 Mar 24   i  `* Re: Breaking a table of record rows into an array2Ed Morton
14 Mar 24   i   `- Re: Breaking a table of record rows into an array1Ed Morton
14 Mar 24   `- Re: Breaking a table of record rows into an array1Ed Morton

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal