hillol 0 Newbie Poster

Hi im a new one to shellscripting
plz see the following code snippet


var1=`sqlplus -S eot/eot <<- !
select ID from testhil1;
quit
!`
echo $var1>ron
cat ron
vari=" "
while read line
do
var2=` echo $line|wc -w |cut -f 1 `
vari=` echo $line `
done<"ron"
echo $var2
echo $vari
i=3
while [ $i -le $var2 ]
do
var3=` echo $vari|cut -f $i -d' ' `
echo $var3
var4=`grep $var3 ron3.dat| cut -f 2 `
echo $var4
sqlplus -S eot/eot<<-! //problem here
update testhil1
set ID='$var4' where ID='$var3' ;
commit;
quit
!
((i=$i+1))
done

error showing : syntax error at line 26 : `<<' unmatched

can u tell me where the error is .I couldnt find it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.