![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| how to access values of awk/nawk variables outside the awk/nawk block? | saniya | Shell Programming and Scripting | 5 | 05-13-2008 07:37 AM |
| How to use awk instead of nawk? | kinmak | UNIX for Dummies Questions & Answers | 2 | 05-07-2008 04:34 AM |
| nawk & awk | sd12 | UNIX for Advanced & Expert Users | 5 | 05-05-2008 10:46 AM |
| nawk/ksh help | DeltaX | Shell Programming and Scripting | 0 | 03-06-2008 03:54 PM |
| nawk -v to awk | kamel.seg | Shell Programming and Scripting | 2 | 12-18-2007 07:30 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|||||
|
I doubt that the error is where you think it is. Ignore the line numbers. There are two ways to find something like this.
1 search for each ( since one of them follows something wrong. 2 copy the script to a temp file. Run the temp file and reproduce the error. Now pull some stuff out...for example, remove the nawk statements and replace them with "echo nawk went here. Remove a little at a time and try to run the script after each removal. You just need to reach the point where the shell can parse the script. It's ok that the script can't do anything useful after you remove stuff. |
|
||||
|
My script stopped right here. I didn't get any message.
+++++++++++++++++++++++++++++++++++++++++++++ /usr/bin/nawk -v interviewerorg="$interviewerorg" '{ printf("%4s\n",interviewerorg) }' >> respondent.tex.tmp.$$ +++++++++++++++++++++++++++++++++++++++++++++ Can you tell any syntax error fomr this? |
|
|||||
|
I don't see any input being redirected into it from a pipe or shell. So it will read from stdin. If that's a file, it should be alright. If not it will read from the tty.
But this has nothing to do with : run6[101]: syntax error at line 121 : `(' unexpected |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|