![]() |
|
|
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 |
| Error executing shell command from a perl script | voorkey | Shell Programming and Scripting | 5 | 03-30-2009 08:48 AM |
| Error in executing ksh from Windows | AnneAnne | Shell Programming and Scripting | 5 | 02-19-2009 07:12 AM |
| when executing .sh script in telnet error "script not found" | smiley | Shell Programming and Scripting | 1 | 04-22-2008 02:01 PM |
| Error message while executing the shell script | ajayyaduwanshi | Shell Programming and Scripting | 4 | 10-25-2007 08:12 AM |
| Error while executing glance using ssh | bishweshwar | Shell Programming and Scripting | 0 | 10-17-2007 11:27 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
error while executing the script
Hello
I am executing the following script nawk 'NR == 1 || substr($0,63,5) ~ /H... / && \ _++ == 2 { fn && close(fn); fn = "part_" ++c; _ = 1 } { print > fn }' sample.dat When i execute as it is it is executing fine. but when i execute the whole script as a single line like below nawk 'NR == 1 || substr($0,63,5) ~ /H... / && \_++ == 2 { fn && close(fn); fn = "part_" ++c; _ = 1 }{ print > fn }' sample.dat I am getting the following error Syntax Error The source line is 1. The error context is NR == 1 || substr($0,63,5) ~ /H... / && >>> \ <<< _++ == 2 { fn awk: 0602-500 Quitting The source line is 1. Please help me out Thanks |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|