Here documents are a way to do this, or if you have the sql statements in a 'sql-file' you can call sql with that file.
Here document example:
sqlplus -s user/password <<EOF
SET PAGES 0
SET ECHO OFF
SET FEEDBACK OFF
SET TERMOUT OFF
SET LINES 132
SELECT x from y where a equals b
All between The first EOF and the closing EOF will be given to sqlplus.
Using a file that sqlplus 'executes' is also possible:
sqlplus user/passwd @dir/sql-commands.do
All the commands in dir/sql-commands.do are executed.
Hope this helps.