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:
Please view this code tag video for how to use code tags when posting code and data.