The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-13-2008
Helmut Helmut is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 10
nawk syntax error

I have following problem! If i trie to execute this command:

nawk '{system("/opt/EMCpower/bin/emcpadm renamepseudo -f d -s "$1" -t "$2")}' ${filestart}$1${fileend}

where ${filestart}$1${fileend} is a filename and $1 and $2 is the first and second column of the file! I get the following error message if i execute it in my script:

nawk: syntax error at source line 1
context is
{system("/opt/EMCpower/bin/emcpadm renamepseudo -f d -s "$1" -t >>> "$2")} <<<
nawk: illegal statement at source line 1
missing }
missing )

can someone help me?