run oracle procedure in unix scripts


for j in $(du -h $1| awk '{printf("%100-s \n",$2)}')

do

    for a in $(ls -time $(find $j  -name '*.txt') | awk '{printf("\n%s %s %s %s %s",$4,$7,$8,$10,$11)}')
     do
        echo "$a">output.txt  
     done


done
exit 0
echo "Password  : xxxxxx " > LOG/BGH_$3.out
echo "Pid       : $2" >> LOG/BGH_$3.out
echo "Dosya Adi : $3" >> LOG/BGH_$3.out

sqlplus sysadm/$1@RTPR << EOF >> LOG/BGH_$3.out
set linesize 1000
set pagesize 50000
set heading off
declare
      
BEGIN
       

  COMMIT;
END;
/
EOF

first code run in the second code and take data to insert oracle table from from unix ... this operation run in the for loop..

how can i do?