RS="QUIT q\n" This sets the record selector to QUIT q\n instead of normal new line \n .
Since this file starts with QUIT q\n , we need to suppress the first output or it will be blank. This is done with skipping record #1 by saying that it must be greater than 1 NR>1 before printing anything.
Then print field $1,$4,$6,$8 $1 first field after QUIT q\n $4 field after SectorAntenna=1 $6 field after SectorAntenna=2 $8 field after SectorAntenna=3 Buy is not printed since its on an odd field number and not field #1
Very nice and creative proposals indeed!
Anyhow, the requestor's solution can be slightly adapted/pruned and will work also (pls note that he seems to want a pipe symbol separator):