sqlplus user/pass@sid << EOF
set colsep ';'
set lines 10000
set pagesize 0
set echo off
set feedback off
set trimspool on
spool /path/to/table.csv
select * from table;
spool off
EOF
I guess that's a basic task using sqlpus to connect, fire off your sql stament which would be a SELECT and then either use some switch of sqlplus to define an output file or just redirect it to an output file. There should be plenty of examples on the web. Strange you did not find any.