Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 22nd, 2008, 06:21 AM
mmunir mmunir is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 1 mmunir User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 26 sec
Reputation Power: 0
Other Language - Find and replace using batch file

i am using windows server 2003.

I have a requirement that in a text file, i want to replace any word after keyword tablespace with some other word.

For example, if file contains the following line
create index csadidxqdes_1 on csadidxqdes(gvkeyx, qtr, datadate) tablesapce csxf_indexfundamentals;

then it should replace the word csxf_indexfundamentals with other word passed. Suppose it is basic in this example, then output should be

create index csadidxqdes_1 on csadidxqdes(gvkeyx, qtr, datadate) tablesapce basic;

Can any body please tell me, how can i do this using batch file programming.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Other Language - Find and replace using batch file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT