this works on the command line but not as "program" - what is the difference between awk programs on the command line and executing awk commands from a file?
$ awk '{ $1 == "test" { print $2 } }' file1
Syntax Error The source line is 1.
The error context is
{ $1 == "test" >>> { <<<
awk: 0602-502 The statement cannot be correctly parsed. The source line is 1.
Syntax Error The source line is 1.