Sqlplus is probably interpreting the script as one line, make sure you have proper line breaks in the file.

Check the file in notepad (or something similar)

Regards