|
Answer» 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.It is possible, but not very easy or pretty. Use an external program - a google came up with this http://www.uwe-sieber.de/files/change.zip
which may - or may not - help you
This sort of thing is better suited to something like vbscript that can PARSE lines fairly easily
Graham
|