-awk: bailing out near line 1

Hi
I'm using cygwin and the script below works just fine under cygwin..
when i upload it on a unix server the script fails with the following errors
-awk: syntax error near line 1
-awk: bailing out near line 1

any ideas why?
thanx

awk '($2 ~ //) {
if ($4 < 40){
print $1,$4,"Failed"
}
else {
print $1,$4
}
}
($2 !~ /
/) {no = $4
if (!no){
print $2,$3,"MISSING"
}
else {
if (no > 40){
print $2,$3,$4
}
else {
print $2,$3,$4,"Failed"
}
}
}' final

final file

96000111 Albert Einstein 86
96000123 Peter Scott 36
96000124 Hilary Smith 80
96000222 Joan Bakewell 50
96000321 Catherine Maguire 43
96000555 * * 36
96000777 * * 46

what are you trying to do with this:
($2 ~ /*/)

And what is your FS set to?

PS: pls don't multi-post to multiple forums.


$ cat final.awk
awk '($2 ~ /\* /) {
if ($4 < 40){
print $1,$4,"Failed"
}
else {
print $1,$4
}
}
($2 !~ /\* /) {no = $4
if (!no){
print $2,$3,"MISSING"
}
else {
if (no > 40){
print $2,$3,$4
}
else {
print $2,$3,$4,"Failed"
}
}
}' final


$ final.awk    
Albert Einstein 86
Peter Scott 36 Failed
Hilary Smith 80
Joan Bakewell 50
Catherine Maguire 43
* * 36 Failed
* * 46



Thanx man i forgot * is a metacharacter.
cheers
kion