wrote:
> On 16.10.2012 19:28, Luuk wrote:
>
>
>
>
>
> > On 16-10-2012 19:10, Roberto Zuelli wrote:
> >> On Oct 16, 5:54 pm, Janis Papanagnou <
janis_papanag...@hotmail.com>
> >> wrote:
> >>> On 16.10.2012 18:46, Roberto Zuelli wrote:
>
> >> NR>1 {a[$2];a[$3]} end; for(b in a)print b
>
> >> I put ";" after end because otherwise I get an error (I use awk as
> >> support language in GAMS).
>
> > and, finally.....
>
> > 'end' should be i capitals...
> > like 'END'
>
> Luuk, that is not the only problem the OP has with his clueless modification.
> He also shouldn't terminate the condition by a semicolon, otherwise he'd get
> the default action {print $0} if the condition is true; but OTOH, as in his
> malformed modification, any undefined variable (like 'end') will be be false
> anyway). And he has written the for-loop, which is valid only as action in
> an action-part within {...}, stand-alone as condition. There's so many wrong
> with that posters code (and posting habits).
>
> Janis
>
>
>