Getting_EOF_Error


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Getting_EOF_Error
# 1  
Old 09-26-2012
Getting_EOF_Error

Am executing a simple script which read input from csv file and stores in a variable and display it back.

But am facing the following error.. Input csv is 6 columns seperated by ,

Used script
Code:
 #!/bin/bash
     2  INPUT_FILE='patch.csv'
     3  IFS=','
     4  while read patch fn svnp user pwd td
     5  do
     6  echo "patch type is $patch"
     7  echo "faile name is $fn"
     8  echo "svn path is $svn"
     9  echo "user name is $user"
    10  echo "password is "$pwd"
    11  echo "target path is $td"
    12  done < $INPUT_FILE
~

Error
Code:
./test.sh: line 11: unexpected EOF while looking for matching `"'
./test.sh: line 13: syntax error: unexpected end of file

Could anyone pl help me out

Moderator's Comments:
Mod Comment Please view this code tag video for how to use code tags when posting code and data.

Last edited by vbe; 09-26-2012 at 09:22 AM..
# 2  
Old 09-26-2012
Code:
echo "password is "$pwd"

See that? That's the culprit...

Last edited by elixir_sinari; 09-26-2012 at 08:21 AM..
This User Gave Thanks to elixir_sinari For This Post:
# 3  
Old 09-26-2012
Thx Elixir.... :-) Bad vision for me:-(
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question