The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Snytax error on If Statement--help dannyd_y Shell Programming and Scripting 2 05-07-2008 08:25 PM
Error with if statement..Please help jisha Shell Programming and Scripting 1 01-16-2008 03:13 AM
parsing error in if statement rakeshou Shell Programming and Scripting 2 09-25-2007 07:46 AM
For loop statement - catch error lumdev Shell Programming and Scripting 4 09-20-2007 04:50 AM
tar error statement legato UNIX for Dummies Questions & Answers 3 03-29-2005 06:58 PM

Reply
 
LinkBack Thread Tools Display Modes
  #15 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: May 2008
Location: St. Louis
Posts: 70
Yes, I am trying to make a change to a ddl file which has multiple occurance of CREATE VIEW <VIEW NAME > .

How can we handle this then ?

Daya
Reply With Quote
Forum Sponsor
  #16 (permalink)  
Old 05-14-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 2,688
You want it to look something like

Code:
sed 's/PROVIDER_MBR_PRI/VW_PROVIDER_MBR_PRI/
s/PROVIDER_REF/VW_PROVIDER_REF/
s/PROVIDER_SRVC/VW_PROVIDER_SRVC/' db2look_dim_provider.ddl1
Reply With Quote
  #17 (permalink)  
Old 05-14-2008
Registered User
 

Join Date: May 2008
Location: St. Louis
Posts: 70
Right but how do I handle this in a scenario where I don't know the number of view occurance ?

Thanks again,

Daya
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:35 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0