I am reading DB properties from databse.prop file and below is the code.
....
 for (( i=1;i<=$Dbcount;i++ ))
                        do
echo "$DBCONNECTIONNAME_${i}"                 
sqlplus -S ${user1}@$DBconnection_${i}/${Password} <<EOF &
spool sqlcsvdb_"$i".csv
                         @squery.sql $para1 $para2
                          exit
EOF
done
Properties file. ....
 DBcount=2
    user1=user
    Password=password
    DBconnection1=Connection1
    DBconnection2=Connection2
..... I am getting the $DBconection_$i variable output as 1, 2 as looping and getting error message as bad substitution, plese help me on this.
 
    