I have a bash script which collects various values and passes them to a sqlplus script as follows
Code:
sqlplus /nolog << EOF
connect $db_name/$db_password@$db_conn
@test.sql $A $B $C $D
exit
EOF
Can I define a bash array as below and call something like @test.sql arg[]?
Code:
arg[0]='A'
arg[1]='B'
arg[2]='C'
arg[3]='D'
@test.sql arg[]