Ignore garbage output file

Hi All,

below is my shell script

#!/bin/sh
set -x
echo "test for multiple values"
UIDPSWD=`cat /projects/feeds/twest/uidpswd`
echo "oracle connection test"
full=/projects/feeds/twest/test_file
values=`cut -d'|' -f1 $full|sed -e "s/.*/'&'/" -e 's/$/,/g' -e '$s/,$//'`
sqlplus $UIDPSWD <<EOF >/projects/feeds/twest/result.txt
set serveroutput on
set verify off
set heading off
set feedback off
set ECHO OFF
set page 0
#spool /projects/feeds/twest/ouput_file.txt
declare
cursor c1
is select emplid,ACTION,ACTION_DT,ACTION_REASON
from ps_job
where emplid='0740439';
c2 ps_job%rowtype;
begin
for i in c1 loop
EXIT WHEN c1%NOTFOUND;
DBMS_OUTPUT.PUT_LINE(i.emplid|| chr(9) ||i.action||chr(9)||i.action_dt||chr(9)||i.ACTION_REASON);
end loop;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('test Update query: ' || SQLERRM);
end;
/
#spool off;
exit;
EOF

It working fine
Problem-
when i am seeing oupt 'cat /projects/feeds/twest/result.txt'
it is showing proper result with other garbage things like

SQL*Plus: Release 8.1.7.0.0 - Production on Tue May 28 02:09:14 2013

(c) Copyright 2000 Oracle Corporation.  All rights reserved.


Connected to:
Oracle8i Enterprise Edition Release 8.1.7.4.0 - 64bit Production
With the Partitioning option
JServer Release 8.1.7.4.0 - 64bit Production

SQL> SQL> SQL> SQL> SQL> SQL> SP2-0158: unknown SET option "page"
SQL> SQL>   2    3    4    5    6    7    8    9   10   11   12   13   14   15   16  0740439    HIR     08-SEP-1997     MKT

that i dont want .
How to ignore this garbage
please some one suggest me.

Thanks,
Krupa

sqlplus -s $UIDPSWD <<EOF >/projects/feeds/twest/result.txt

Hi,

Thanks a lot.

i want to add file header like

select 'emplid'|| chr(9) ||'ACTION'|| chr(9) ||'ACTION_DT'|| chr(9) ||'ACTION_REASON' from dual; 

where need to be added in script,please suggest

Thanks,
Krupa