awk fields remain stale after FS is reassigned mid-script
In awk, the fields $1 , $2 , and so on are produced by splitting the current record $0 using the value of FS in effect when the record was read. A script that reassigns FS partway through processing a record, such as switching from the default whitespace rule to a comma or colon, can leave the already-split fields out of sync with the new separator, which lo