Creating a .sh script to execute an SQL file

Hello

I'm hoping someone may be able to help. I'm absolutely brand new to these shell scripts and have tried to bash bits together from the little learnt but my final script still doesn't work. Sorry if something similar is already posted but couldn't find anything existing close enough to help me with what I need.

The .sh is running from an external application and displays the following error meesage Unable to execute 'filepath' 2>&1. Does this error message relate to anything specific or anything anyone is aware of?

All I require the .sh to do is execute 1 SQL file called unique.sql and the SQL code does everything else I need but still been unable to get it to work.

Thanks in advance

to run a sql file from a script, the following line should do:

sqlplus -s user/password@inst @unique.sql