Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SED? remove STORAGE(...) from a text file

Status
Not open for further replies.

kukuluku

MIS
May 2, 2002
56
US
Greetings,

I am planning to migrate an Oracle database from DMT to LMT. I need to create a script file from import and then remove all 'STOARGE(...)' clauses from the script. I have over 10,000 objects and manually removing these would be very time comsuming. Is there a way with sed or other substitue funtion to do this quickly?

Thanks very much in advance.
 
Not familiar with Oracle syntax, but try

sed 's/STORAGE\(.*\)//g' inputfile > outputfile

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top