![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with dd command or maybe AFS problem | Anta | Shell Programming and Scripting | 0 | 08-25-2006 11:10 AM |
| SSH Problem auth problem | budrito | UNIX for Advanced & Expert Users | 1 | 03-17-2004 10:12 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
problem using awk
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 |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|