Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?
"kfman" <kfman2008@gmail.com> wrote in message
news:u$a6oal1HHA.4184@TK2MSFTNGP06.phx.gbl...
> Is there a tool that can search and replace multiple files under all
> subdirectories recursively?
>
> Hi all,
>
> In my project, I often need to change the variable names in my programs,
> and then remember to undo the changes.
>
> Let's say, in a forward direction, I need to:
>
> change "aaa" to "bbb",
> change "ccc" to "ddd",
> change "eee" to "fff",
> ...
>
> in all files under specified directory and its sub-directories,
> recursively.
>
> And in another day,
>
> I will have to undo the above changes, i.e.
>
> change "bbb" to "aaa",
> change "ddd" to "ccc",
> change "fff" to "eee",
>
> ...
>
> in all files under specified directory and its sub-directories,
> recursively.
>
> Is there a tool/software that can do these automatically for me?
>
> I hope the tool can automate the process based on a symbol-replacement
> list that I provide.
>
> Thanks a lot!
>
> (I am working on Windows XP. )
>
Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?
Pegasus (MVP) wrote:
> "kfman" <kfman2008@gmail.com> wrote in message
> news:u$a6oal1HHA.4184@TK2MSFTNGP06.phx.gbl...
>> Is there a tool that can search and replace multiple files under all
>> subdirectories recursively?
>>
>> Hi all,
>>
>> In my project, I often need to change the variable names in my
>> programs, and then remember to undo the changes.
>>
>> Let's say, in a forward direction, I need to:
>>
>> change "aaa" to "bbb",
>> change "ccc" to "ddd",
>> change "eee" to "fff",
>> ...
>>
>> in all files under specified directory and its sub-directories,
>> recursively.
>>
>> And in another day,
>>
>> I will have to undo the above changes, i.e.
>>
>> change "bbb" to "aaa",
>> change "ddd" to "ccc",
>> change "fff" to "eee",
>>
>> ...
>>
>> in all files under specified directory and its sub-directories,
>> recursively.
>>
>> Is there a tool/software that can do these automatically for me?
>>
>> I hope the tool can automate the process based on a
>> symbol-replacement list that I provide.
>>
>> Thanks a lot!
>>
>> (I am working on Windows XP. )
>>
>
> Create two batch files like so:
>
> forward.bat
> ========
> ren bbb aaa
> ren sub1\bbb aaa
> ren sub2\bbb aaa
>
> backward.bat
> ==========
> ren aaa bbb
> ren sub1\aaa bbb
> ren sub2\aaa bbb
>
> Note that the whole scheme will fail if you create new
> files called "bbb" in between running forward.bat and
> backward.bat.
Not the file NAMES, text WITHIN multiple files across multiple folders.
Google search on "search replace text multiple files free" yielded thousands
of hits. Here's one with six solutions:
Re: Is there a tool that can search and replace multiple files under all subdirectories recursively?
"HeyBub" <heybub@gmail.com> wrote in message
news:uK5KaPr1HHA.1188@TK2MSFTNGP04.phx.gbl...
> Pegasus (MVP) wrote:
>> "kfman" <kfman2008@gmail.com> wrote in message
>> news:u$a6oal1HHA.4184@TK2MSFTNGP06.phx.gbl...
>>> Is there a tool that can search and replace multiple files under all
>>> subdirectories recursively?
>>>
>>> Hi all,
>>>
>>> In my project, I often need to change the variable names in my
>>> programs, and then remember to undo the changes.
>>>
>>> Let's say, in a forward direction, I need to:
>>>
>>> change "aaa" to "bbb",
>>> change "ccc" to "ddd",
>>> change "eee" to "fff",
>>> ...
>>>
>>> in all files under specified directory and its sub-directories,
>>> recursively.
>>>
>>> And in another day,
>>>
>>> I will have to undo the above changes, i.e.
>>>
>>> change "bbb" to "aaa",
>>> change "ddd" to "ccc",
>>> change "fff" to "eee",
>>>
>>> ...
>>>
>>> in all files under specified directory and its sub-directories,
>>> recursively.
>>>
>>> Is there a tool/software that can do these automatically for me?
>>>
>>> I hope the tool can automate the process based on a
>>> symbol-replacement list that I provide.
>>>
>>> Thanks a lot!
>>>
>>> (I am working on Windows XP. )
>>>
>>
>> Create two batch files like so:
>>
>> forward.bat
>> ========
>> ren bbb aaa
>> ren sub1\bbb aaa
>> ren sub2\bbb aaa
>>
>> backward.bat
>> ==========
>> ren aaa bbb
>> ren sub1\aaa bbb
>> ren sub2\aaa bbb
>>
>> Note that the whole scheme will fail if you create new
>> files called "bbb" in between running forward.bat and
>> backward.bat.
>
> Not the file NAMES, text WITHIN multiple files across multiple folders.
>
> Google search on "search replace text multiple files free" yielded
> thousands of hits. Here's one with six solutions:
>
> http://www.freedownloadscenter.com/U...ls/index6.html
Glad to hear that you found something that works for you.