Find/replace text inside multiple documents

Posted on 2012-09-15
Last Modified: 2012-09-16
I have a bunch of scripts that I need to update a server name in.
Instead of changing 1 by 1, is there a tool I can use to find/replace on multiple files? (.bat files)
Question by:Howzatt

    Expert Comment

    You can do this using Microsoft Office Word. Depending on your version of word the tool may be in different places on the tool bar.

    Once you've found the tool you'll be able to input the word you want changed and the new version of the word.
    LVL 20

    Expert Comment

    by:Radhakrishnan Rajayyan
    LVL 10

    Assisted Solution

    Check out "A.F.9" utility (he's got some other cool utilities for renaming/splitting/merging files as well):

    A.F.9 Replace some bytes
    LVL 18

    Expert Comment

    open bat file in notepad ype ctrl+h and you will see the find and replace windows
    Type old text in first block and new text i.e text which will replace the old one in second box thats it
    LVL 10

    Accepted Solution

    To clarify, I believe Howzatt is looking for a solution that will allow him to perform a find/replace against multiple files without the need to open each one.  Suggestions to use Word/Notepad cannot address this requirement.

    The freeware utility I mentioned, A.F.9, provides multi-file, drag-and-drop, search & replace functionality.
    LVL 3

    Expert Comment

    I use a great command line utility called "bsed.exe".

    When I get home I will upload it.


    Author Closing Comment

    A.F.9 worked perfect. Updated all 50 odd scripts within milliseconds.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I had a question today where the user wanted to know how to delete an SSL Certificate, so I thought that I would quickly add this How to! Article for your reference. WHY WOULD YOU WANT TO DELETE A CERTIFICATE? 1. If an incorrect certificate was …
    New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
    This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
    This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now