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
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