replace specefique codes in a script using through a tool

Posted by Moudiz on Super User See other posts from Super User or by Moudiz
Published on 2013-10-29T09:48:07Z Indexed on 2013/10/29 9:59 UTC
Read the original article Hit count: 267

Filed under:
|

I have a script that contain random codes but I am searching for a way in notepad ++ or for a batch-file or any tool that can replace sepcifque codes, here is an example:

Random
If this equal that then you sould do this and do that therefore..
the code should be executed immediatly
--stackb

select * from user_error where object_name = name
select * from user_error where table= randomly

case 1 a = b else c=a
--stacke
Begin with the structure of the data and divide the codes
end with what you know

I want to replace the words between the comments stack b and stack a so the result will be like below

Random
If this equal that then you sould do this and do that therefore..
the code should be executed immediatly
--stackb

The codes here has been replaced,
can you do that ?

case 1 a = b else c=a
--stacke
Begin with the structure of the data and divide the codes
end with what you know

Is there a code in batch file or note pad ++ where I can acheive my result?

© Super User or respective owner

Related posts about notepad++

Related posts about batch-file