How to assign a shell variable to a NUMBER parameter in pl/sql?

I have the below script running for generating file from PL/SQL stored procedure. I need to declare a shell variable and then pass this to sqlplus command to pass the same as a INPUT parameter for the stored procedure. Please help to do this.

#!/bin/sh
minlimit=0
maxlimit=10
size=100
while [ $maxlimit -gt $size ] do
outputvar=`sqlplus -S $username/$password@$tnsname << EOF
set echo off
variable var CLOB
begin
        pack.proc($minlimit,$maxlimit,:var);
end;
/
exit;
EOF
`
maxlimit=maxlimit+10
done