If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > pattern replacement

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-25-11, 18:56
pp8771 pp8771 is offline
Registered User
 
Join Date: Nov 2011
Posts: 1
pattern replacement

Hi-
How can I replace the pattern NULL by WSA_ROUTES_TRP_ROUTES_TIN1 .
in the below statement.
The word with which NULL need to be replaced should be extracted before a key word Exception


Currently:
BEGIN EXECUTE IMMEDIATE ' drop package WSA_ROUTES_TRP_ROUTES_TIN1 ' ; EXCEPTION WHEN OTHERS THEN NULL ; END ;


Post replacement:

BEGIN EXECUTE IMMEDIATE ' drop package WSA_ROUTES_TRP_ROUTES_TIN1 ' ; EXCEPTION WHEN OTHERS THEN WSA_ROUTES_TRP_ROUTES_TIN1 ; END ;


Thanks in advance

Kind Regards
Pranab
Reply With Quote
  #2 (permalink)  
Old 11-26-11, 08:46
kitaman kitaman is offline
Papabi's friend
 
Join Date: Sep 2009
Location: Ontario
Posts: 629
I don't quite understand your question.
Do you want to edit multiple files and replace each occurance of "NULL", where it follows the word "EXCEPTION"? with the word that precedes the word "EXCEPTION" ?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On