Sujet : Re: Breaking a table of record rows into an array
De : janis_papanagnou+ng (at) *nospam* hotmail.com (Janis Papanagnou)
Groupes : comp.lang.awkDate : 12. Mar 2024, 00:08:17
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <uso2t3$3sfn9$1@dont-email.me>
References : 1 2 3
User-Agent : Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
On 11.03.2024 18:41, 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
So what?
You want a more cryptic way? - Here it is...
BEGIN { FS="] " ; OFS="\n" }
{ NF=NF } 1
or
BEGIN { FS="] " ; OFS="\n" }
{ $1=$1 } 1
Mind, though, that for a program skeleton to solve your task
my original code is easier to adjust for your data processing.
You are aware that it's just the first step and needs further
processing, aren't you?
Janis