Hi,
The previous explanation is correct.
$sqlplus /nolog < now u can write all the sql command after giving the connect string.
to end your session.
you need to give !END
once again.

This is more helpful in making shell scripts which interact with oracle.

eg.
sqlplus /nolog < alter system switch logfile
<
I hope this helps

Thanks