Activity Stream
48,167 MEMBERS
6742 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1.     
    #1
    Banned

    Default replace multiple different texts in different text files

    Is there a batch script or a windows program which can be used to replace multiple different texts inside different text files with different replacement texts at once using regex/wildcards?

    Here's the scenario:

    I have hundreds of text files with texts inside them such as E:\documents\fruits\Apple.jpg, E:\documents\instruments\Guitar.png, etc. along other lines of texts within the files.

    I would like to replace these texts with different ones which I put inside one text file which contains the replacing texts one text per line. This text file's contents looks something like:

    Code: 
    E:\documents\121345643\Guitar.png
    E:\documents\347627548\Apple.jpg
    Take note that the directory names in between "E:\documents\" and the filenames vary and the filenames are the ones constant.

    I have Windowsgrep installed but I'm not sure whether it can be used to do this task. I have used it before for simple find and replace tasks in which I needed to replace similar texts within files with one "replace with" value.

    Any kind of help would be appreciated.
    techdaemon Reviewed by techdaemon on . replace multiple different texts in different text files Is there a batch script or a windows program which can be used to replace multiple different texts inside different text files with different replacement texts at once using regex/wildcards? Here's the scenario: I have hundreds of text files with texts inside them such as E:\documents\fruits\Apple.jpg, E:\documents\instruments\Guitar.png, etc. along other lines of texts within the files. I would like to replace these texts with different ones which I put inside one text file which Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Banned
    or to make it more simple i am looking for an application that will allow me to batch find and replace different texts in multiple text files

    For example:

    Ball --> Basketball
    Love --> Loved
    Apple --> Pineapple
    Pillow --> Throw-pillow

    The texts to the left are the original texts found in multiple text files and the ones next to the arrows are the replacement texts which I would just like to type in or paste from clipboard

  4.     
    #3
    Member
    grepwin can do this task

  5.     
    #4
    Banned
    @masterbator

    grepwin only allows searching one term in multiple files at one instance. i need something that will allow me to search multiple terms/texts in multiple text files and replace these terms/texts with multiple values I will define--all at once! as in batch!

  6.     
    #5
    Member
    oic, in that case you need to do that via bash scripting in ssh/linux using sed

  7.     
    #6
    Banned
    there's got to be a way to do this in windows.

  8.     
    #7
    Respected Member
    The command is munge. It came with the resource kit for windows prior to 2000.
    ind and Replace text within file(s)
    Munge.exe has been dropped from the Resource Kit in Windows 2000 and above.
    Syntax
    MUNGE ScriptFile [options] FilesToMunge...
    Each line in the ScriptFile should take one of the following 3 forms:

    oldName newName
    "oldString" "newString"
    -F .Ext Name. Name.Ext

    MUNGE myChanges.ini -v
    http://hotfile.com/dl/97989813/8694125/munge.zip.html

  9.     
    #8
    Member
    Use Advanced Search and Replace

  10.     
    #9
    Banned
    ^ thank you. this is what i am looking for!

  11.     
    #10
    Member
    Website's:
    videobbmovie.blogspot.com clickmegavideo.blogspot.com

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replace text with Image in Wordpress ?
    By Jayzzy in forum Webmaster Discussion
    Replies: 1
    Last Post: 13th Nov 2012, 08:04 PM
  2. Rar Multiple Avi Files At Once, How To?
    By TexWilliams in forum Webmaster Discussion
    Replies: 4
    Last Post: 4th Jul 2011, 11:09 AM
  3. Multiple Files Search & Replace
    By soft2050 in forum Webmaster Resources
    Replies: 14
    Last Post: 11th Mar 2011, 09:26 PM
  4. batch insert texts to the beginning of multiple files
    By techdaemon in forum Technical Help Desk Support
    Replies: 1
    Last Post: 22nd Jan 2011, 08:02 PM
  5. Renaming Multiple Files in SSH
    By Crucify in forum Technical Help Desk Support
    Replies: 6
    Last Post: 29th Jun 2009, 04:37 PM

Tags for this Thread

BE SOCIAL