Hi, Anyone know why i get this error?
+ awk -F, '{if($5=="x" && $6=="y" && $10=="z")print $0}' file.data
awk: syntax error near line 1
awk: bailing out near line 1
This is the output from a shell script that can be resumed like...
set -x
fich_dat=file.data
variable1=x
variable2=y
variable3=z
awk -F, \''{if($5=='\"$variable1\"' && $6=='\"$variable2\"' && $10=='\"$variable3\"')print $0}'\' $fich_dat
The most strange is that if i copy paste:
awk -F, '{if($5=="x" && $6=="y" && $10=="z")print $0}' file.data
in the unix console, it works.
The UNIX system is:
Sun Microsystems Inc. SunOS 5.9