I have a file proc.txt:
if @debug = 1 then
message 'Start Processing ', @procname, dateformat(now(*), 'hh:mm:ss'), @julian type info to client;
end if;
/*
execute immediate with quotes
'insert into sys_suppdata (property, value, key_name)
location ''' || @supp_server || '.' || @supp_db || '''' ||
' {select property, value, key_name
from sys_suppdata
where key_name = ''Approve_Deny_Description''
or key_name = ''Referral_Description'' }';
*/
-- Create SE Currency Table for Processing SE Results & Conversion
/* to prevent it from executing */
When reading this file thru shell script using the code below:
cat proc.txt | while read str
do
..
done
I want to ignore all the commented lines, whether single or multiple, i.e. between /* and */ and read all the other lines. Please suggest