What is the easiest way to find and replace text in 20 text files in a directory?Windows : Replace character...

Is there a way to generate a list of distinct numbers such that no two subsets ever have an equal sum?

"The cow" OR "a cow" OR "cows" in this context

Alignment of various blocks in tikz

Why must Chinese maps be obfuscated?

Extension of 2-adic valuation to the real numbers

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Can I criticise the more senior developers around me for not writing clean code?

Why does Mind Blank stop the Feeblemind spell?

Is there really no use for MD5 anymore?

What does ゆーか mean?

How to write a column outside the braces in a matrix?

What is the most expensive material in the world that could be used to create Pun-Pun's lute?

Is it idiomatic to construct against `this`

Is there any official lore on the Far Realm?

How to have a sharp product image?

Like totally amazing interchangeable sister outfits II: The Revenge

Critique of timeline aesthetic

How can Republicans who favour free markets, consistently express anger when they don't like the outcome of that choice?

Can an Area of Effect spell cast outside a Prismatic Wall extend inside it?

What are the steps to solving this definite integral?

How did Captain America manage to do this?

How to fry ground beef so it is well-browned

What is causing the white spot to appear in some of my pictures

Dynamic SOQL query relationship with field visibility for Users



What is the easiest way to find and replace text in 20 text files in a directory?


Windows : Replace character inside fileEasiest way to rename the extensions on 100 files in a directory in Windows 7?Find and Replace File UtilityIs there a filesystem/browser that provides tagging and dynamic views of files?what is the most common/efficient way of managing collections of batch files?Why can't I delete .exe files on my SSD Drive?Simplest way to erase and replace content of multiples text filesHow do I search my files for a suffix?How to organize files to easily access them later?How to compare files in 2 HDDs, find exact copies and different files and sync only what I need?Windows Explorer - Open all file select dialogs to last location used GLOBALLY






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







17















I have 20 text files with various extensions in a directory.



I want to replace "nnn" with "ooo" in all files.



I could import them into a project in Eclipse or Visual Studio to replace them all but that is overkill and would add other meta files etc.



What is a simple way to do this, I'm thinking: select all files, right click, choose some tool called (e.g. "QuickReplacer") and fill in find and replace, click and done.



Does anyone know of a tool like this?










share|improve this question




















  • 1





    I'd like to point out that if you're already using Eclipse, bringing up the Find in Files (or whatever it's called) you can choose a Directory, rather than an existing project, to search. It shouldn't be hard from there to then run a find/replace on matched files.

    – anonymous coward
    Jul 31 '09 at 13:58


















17















I have 20 text files with various extensions in a directory.



I want to replace "nnn" with "ooo" in all files.



I could import them into a project in Eclipse or Visual Studio to replace them all but that is overkill and would add other meta files etc.



What is a simple way to do this, I'm thinking: select all files, right click, choose some tool called (e.g. "QuickReplacer") and fill in find and replace, click and done.



Does anyone know of a tool like this?










share|improve this question




















  • 1





    I'd like to point out that if you're already using Eclipse, bringing up the Find in Files (or whatever it's called) you can choose a Directory, rather than an existing project, to search. It shouldn't be hard from there to then run a find/replace on matched files.

    – anonymous coward
    Jul 31 '09 at 13:58














17












17








17


3






I have 20 text files with various extensions in a directory.



I want to replace "nnn" with "ooo" in all files.



I could import them into a project in Eclipse or Visual Studio to replace them all but that is overkill and would add other meta files etc.



What is a simple way to do this, I'm thinking: select all files, right click, choose some tool called (e.g. "QuickReplacer") and fill in find and replace, click and done.



Does anyone know of a tool like this?










share|improve this question
















I have 20 text files with various extensions in a directory.



I want to replace "nnn" with "ooo" in all files.



I could import them into a project in Eclipse or Visual Studio to replace them all but that is overkill and would add other meta files etc.



What is a simple way to do this, I'm thinking: select all files, right click, choose some tool called (e.g. "QuickReplacer") and fill in find and replace, click and done.



Does anyone know of a tool like this?







windows-explorer file-management






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 15 '14 at 14:03









Cfinley

1,43331220




1,43331220










asked Jul 31 '09 at 11:51









Edward TanguayEdward Tanguay

6,0633192124




6,0633192124








  • 1





    I'd like to point out that if you're already using Eclipse, bringing up the Find in Files (or whatever it's called) you can choose a Directory, rather than an existing project, to search. It shouldn't be hard from there to then run a find/replace on matched files.

    – anonymous coward
    Jul 31 '09 at 13:58














  • 1





    I'd like to point out that if you're already using Eclipse, bringing up the Find in Files (or whatever it's called) you can choose a Directory, rather than an existing project, to search. It shouldn't be hard from there to then run a find/replace on matched files.

    – anonymous coward
    Jul 31 '09 at 13:58








1




1





I'd like to point out that if you're already using Eclipse, bringing up the Find in Files (or whatever it's called) you can choose a Directory, rather than an existing project, to search. It shouldn't be hard from there to then run a find/replace on matched files.

– anonymous coward
Jul 31 '09 at 13:58





I'd like to point out that if you're already using Eclipse, bringing up the Find in Files (or whatever it's called) you can choose a Directory, rather than an existing project, to search. It shouldn't be hard from there to then run a find/replace on matched files.

– anonymous coward
Jul 31 '09 at 13:58










8 Answers
8






active

oldest

votes


















8














GrepWin would do this among others, and it is a Explorer plugin.



However there is quite a big array of different applications available that can do this.



This SO thread on the topic also suggest WinGrep as an option.






share|improve this answer


























  • installed it and did my search/replace within 3 minutes, thanks!

    – Edward Tanguay
    Jul 31 '09 at 12:02



















17














Notepad++ can do it easily...



Search menu > Find in files.. menu item...






share|improve this answer































    4














    If you are familiar with Visual Studio, you can do that without creating a project. Do (something like): Edit>Find/Replace>Find in Files. There you can specify a folder.



    I've done this many times. I'd say it's only overkill if you had to create a project (you don't) or if you didn't have VS installed and needed it only for this request.






    share|improve this answer































      2














      I find that Textpad is very useful for this kind of thing, amongst others.






      share|improve this answer































        0














        I really like the WildEdit product by Helios Software (makers of the excellent Textpad text editor).



        It's reliable, quick, flexible, and doesn't cost much (£8.50 = approx. 10 Euro) - well worth its price!



        It handles ASCII, ANSI, UTF-8 and other encoding with no problem, you can pick a directory and a file mask (*.cs, *.as?x etc.) and apply the changes only to those files, and it will keep a backup of your original files in case you want to undo the change.



        Marc






        share|improve this answer































          0














          SciTE has this built in on Windows - so long as all the files are in the same directory (and is a very small and quick general purpose text editor into the bargain) - right click and 'Edit with SciTE' any one file in the directory, Ctrl+Shift+F, type in search and replace strings and an optional filename filter and click OK.






          share|improve this answer































            0














            Sublime: Ctrl+Shift+f



            Replaces text in all open files, or you can specify particular folder(s) by clicking .



            Afterwards, hit File > Save All.






            share|improve this answer































              -1














              I know I'm a bit late to the Party, Just wanted to Mention this great free tool.
              http://dngrep.github.io/






              share|improve this answer
























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f16262%2fwhat-is-the-easiest-way-to-find-and-replace-text-in-20-text-files-in-a-directory%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                8 Answers
                8






                active

                oldest

                votes








                8 Answers
                8






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                8














                GrepWin would do this among others, and it is a Explorer plugin.



                However there is quite a big array of different applications available that can do this.



                This SO thread on the topic also suggest WinGrep as an option.






                share|improve this answer


























                • installed it and did my search/replace within 3 minutes, thanks!

                  – Edward Tanguay
                  Jul 31 '09 at 12:02
















                8














                GrepWin would do this among others, and it is a Explorer plugin.



                However there is quite a big array of different applications available that can do this.



                This SO thread on the topic also suggest WinGrep as an option.






                share|improve this answer


























                • installed it and did my search/replace within 3 minutes, thanks!

                  – Edward Tanguay
                  Jul 31 '09 at 12:02














                8












                8








                8







                GrepWin would do this among others, and it is a Explorer plugin.



                However there is quite a big array of different applications available that can do this.



                This SO thread on the topic also suggest WinGrep as an option.






                share|improve this answer















                GrepWin would do this among others, and it is a Explorer plugin.



                However there is quite a big array of different applications available that can do this.



                This SO thread on the topic also suggest WinGrep as an option.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited May 23 '17 at 11:33









                Community

                1




                1










                answered Jul 31 '09 at 11:53









                BinaryMisfitBinaryMisfit

                18.9k106276




                18.9k106276













                • installed it and did my search/replace within 3 minutes, thanks!

                  – Edward Tanguay
                  Jul 31 '09 at 12:02



















                • installed it and did my search/replace within 3 minutes, thanks!

                  – Edward Tanguay
                  Jul 31 '09 at 12:02

















                installed it and did my search/replace within 3 minutes, thanks!

                – Edward Tanguay
                Jul 31 '09 at 12:02





                installed it and did my search/replace within 3 minutes, thanks!

                – Edward Tanguay
                Jul 31 '09 at 12:02













                17














                Notepad++ can do it easily...



                Search menu > Find in files.. menu item...






                share|improve this answer




























                  17














                  Notepad++ can do it easily...



                  Search menu > Find in files.. menu item...






                  share|improve this answer


























                    17












                    17








                    17







                    Notepad++ can do it easily...



                    Search menu > Find in files.. menu item...






                    share|improve this answer













                    Notepad++ can do it easily...



                    Search menu > Find in files.. menu item...







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Jul 31 '09 at 12:03









                    spinodalspinodal

                    1,0881123




                    1,0881123























                        4














                        If you are familiar with Visual Studio, you can do that without creating a project. Do (something like): Edit>Find/Replace>Find in Files. There you can specify a folder.



                        I've done this many times. I'd say it's only overkill if you had to create a project (you don't) or if you didn't have VS installed and needed it only for this request.






                        share|improve this answer




























                          4














                          If you are familiar with Visual Studio, you can do that without creating a project. Do (something like): Edit>Find/Replace>Find in Files. There you can specify a folder.



                          I've done this many times. I'd say it's only overkill if you had to create a project (you don't) or if you didn't have VS installed and needed it only for this request.






                          share|improve this answer


























                            4












                            4








                            4







                            If you are familiar with Visual Studio, you can do that without creating a project. Do (something like): Edit>Find/Replace>Find in Files. There you can specify a folder.



                            I've done this many times. I'd say it's only overkill if you had to create a project (you don't) or if you didn't have VS installed and needed it only for this request.






                            share|improve this answer













                            If you are familiar with Visual Studio, you can do that without creating a project. Do (something like): Edit>Find/Replace>Find in Files. There you can specify a folder.



                            I've done this many times. I'd say it's only overkill if you had to create a project (you don't) or if you didn't have VS installed and needed it only for this request.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jul 31 '09 at 11:57









                            Michael HarenMichael Haren

                            39421024




                            39421024























                                2














                                I find that Textpad is very useful for this kind of thing, amongst others.






                                share|improve this answer




























                                  2














                                  I find that Textpad is very useful for this kind of thing, amongst others.






                                  share|improve this answer


























                                    2












                                    2








                                    2







                                    I find that Textpad is very useful for this kind of thing, amongst others.






                                    share|improve this answer













                                    I find that Textpad is very useful for this kind of thing, amongst others.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jul 31 '09 at 12:00









                                    RemouRemou

                                    28819




                                    28819























                                        0














                                        I really like the WildEdit product by Helios Software (makers of the excellent Textpad text editor).



                                        It's reliable, quick, flexible, and doesn't cost much (£8.50 = approx. 10 Euro) - well worth its price!



                                        It handles ASCII, ANSI, UTF-8 and other encoding with no problem, you can pick a directory and a file mask (*.cs, *.as?x etc.) and apply the changes only to those files, and it will keep a backup of your original files in case you want to undo the change.



                                        Marc






                                        share|improve this answer




























                                          0














                                          I really like the WildEdit product by Helios Software (makers of the excellent Textpad text editor).



                                          It's reliable, quick, flexible, and doesn't cost much (£8.50 = approx. 10 Euro) - well worth its price!



                                          It handles ASCII, ANSI, UTF-8 and other encoding with no problem, you can pick a directory and a file mask (*.cs, *.as?x etc.) and apply the changes only to those files, and it will keep a backup of your original files in case you want to undo the change.



                                          Marc






                                          share|improve this answer


























                                            0












                                            0








                                            0







                                            I really like the WildEdit product by Helios Software (makers of the excellent Textpad text editor).



                                            It's reliable, quick, flexible, and doesn't cost much (£8.50 = approx. 10 Euro) - well worth its price!



                                            It handles ASCII, ANSI, UTF-8 and other encoding with no problem, you can pick a directory and a file mask (*.cs, *.as?x etc.) and apply the changes only to those files, and it will keep a backup of your original files in case you want to undo the change.



                                            Marc






                                            share|improve this answer













                                            I really like the WildEdit product by Helios Software (makers of the excellent Textpad text editor).



                                            It's reliable, quick, flexible, and doesn't cost much (£8.50 = approx. 10 Euro) - well worth its price!



                                            It handles ASCII, ANSI, UTF-8 and other encoding with no problem, you can pick a directory and a file mask (*.cs, *.as?x etc.) and apply the changes only to those files, and it will keep a backup of your original files in case you want to undo the change.



                                            Marc







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Jul 31 '09 at 11:57









                                            marc_smarc_s

                                            79852236




                                            79852236























                                                0














                                                SciTE has this built in on Windows - so long as all the files are in the same directory (and is a very small and quick general purpose text editor into the bargain) - right click and 'Edit with SciTE' any one file in the directory, Ctrl+Shift+F, type in search and replace strings and an optional filename filter and click OK.






                                                share|improve this answer




























                                                  0














                                                  SciTE has this built in on Windows - so long as all the files are in the same directory (and is a very small and quick general purpose text editor into the bargain) - right click and 'Edit with SciTE' any one file in the directory, Ctrl+Shift+F, type in search and replace strings and an optional filename filter and click OK.






                                                  share|improve this answer


























                                                    0












                                                    0








                                                    0







                                                    SciTE has this built in on Windows - so long as all the files are in the same directory (and is a very small and quick general purpose text editor into the bargain) - right click and 'Edit with SciTE' any one file in the directory, Ctrl+Shift+F, type in search and replace strings and an optional filename filter and click OK.






                                                    share|improve this answer













                                                    SciTE has this built in on Windows - so long as all the files are in the same directory (and is a very small and quick general purpose text editor into the bargain) - right click and 'Edit with SciTE' any one file in the directory, Ctrl+Shift+F, type in search and replace strings and an optional filename filter and click OK.







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Jul 31 '09 at 12:02









                                                    robertcrobertc

                                                    5892918




                                                    5892918























                                                        0














                                                        Sublime: Ctrl+Shift+f



                                                        Replaces text in all open files, or you can specify particular folder(s) by clicking .



                                                        Afterwards, hit File > Save All.






                                                        share|improve this answer




























                                                          0














                                                          Sublime: Ctrl+Shift+f



                                                          Replaces text in all open files, or you can specify particular folder(s) by clicking .



                                                          Afterwards, hit File > Save All.






                                                          share|improve this answer


























                                                            0












                                                            0








                                                            0







                                                            Sublime: Ctrl+Shift+f



                                                            Replaces text in all open files, or you can specify particular folder(s) by clicking .



                                                            Afterwards, hit File > Save All.






                                                            share|improve this answer













                                                            Sublime: Ctrl+Shift+f



                                                            Replaces text in all open files, or you can specify particular folder(s) by clicking .



                                                            Afterwards, hit File > Save All.







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered yesterday









                                                            DuncDunc

                                                            2131212




                                                            2131212























                                                                -1














                                                                I know I'm a bit late to the Party, Just wanted to Mention this great free tool.
                                                                http://dngrep.github.io/






                                                                share|improve this answer




























                                                                  -1














                                                                  I know I'm a bit late to the Party, Just wanted to Mention this great free tool.
                                                                  http://dngrep.github.io/






                                                                  share|improve this answer


























                                                                    -1












                                                                    -1








                                                                    -1







                                                                    I know I'm a bit late to the Party, Just wanted to Mention this great free tool.
                                                                    http://dngrep.github.io/






                                                                    share|improve this answer













                                                                    I know I'm a bit late to the Party, Just wanted to Mention this great free tool.
                                                                    http://dngrep.github.io/







                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered Mar 13 '18 at 1:36









                                                                    Pola EdwardPola Edward

                                                                    991




                                                                    991






























                                                                        draft saved

                                                                        draft discarded




















































                                                                        Thanks for contributing an answer to Super User!


                                                                        • Please be sure to answer the question. Provide details and share your research!

                                                                        But avoid



                                                                        • Asking for help, clarification, or responding to other answers.

                                                                        • Making statements based on opinion; back them up with references or personal experience.


                                                                        To learn more, see our tips on writing great answers.




                                                                        draft saved


                                                                        draft discarded














                                                                        StackExchange.ready(
                                                                        function () {
                                                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f16262%2fwhat-is-the-easiest-way-to-find-and-replace-text-in-20-text-files-in-a-directory%23new-answer', 'question_page');
                                                                        }
                                                                        );

                                                                        Post as a guest















                                                                        Required, but never shown





















































                                                                        Required, but never shown














                                                                        Required, but never shown












                                                                        Required, but never shown







                                                                        Required, but never shown

































                                                                        Required, but never shown














                                                                        Required, but never shown












                                                                        Required, but never shown







                                                                        Required, but never shown







                                                                        Popular posts from this blog

                                                                        VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                                                                        Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

                                                                        looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...