Results 1 to 10 of 14
-
19th Jan 2011, 05:43 AM #1OPBanned
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
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
-
19th Jan 2011, 07:05 AM #2OPBanned
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
-
19th Jan 2011, 07:11 AM #3Member
grepwin can do this task
-
19th Jan 2011, 07:32 AM #4OPBanned
@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!
-
19th Jan 2011, 08:07 AM #5Member
oic, in that case you need to do that via bash scripting in ssh/linux using sed
-
19th Jan 2011, 08:58 AM #6OPBanned
there's got to be a way to do this in windows.
-
19th Jan 2011, 04:05 PM #7Respected 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
-
19th Jan 2011, 08:37 PM #8Member
Use Advanced Search and Replace
-
19th Jan 2011, 11:46 PM #9OPBanned
^ thank you. this is what i am looking for!
-
20th Jan 2011, 04:48 AM #10MemberWebsite's:
videobbmovie.blogspot.com clickmegavideo.blogspot.comtry this...its a freeware
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Replace text with Image in Wordpress ?
By Jayzzy in forum Webmaster DiscussionReplies: 1Last Post: 13th Nov 2012, 08:04 PM -
Rar Multiple Avi Files At Once, How To?
By TexWilliams in forum Webmaster DiscussionReplies: 4Last Post: 4th Jul 2011, 11:09 AM -
Multiple Files Search & Replace
By soft2050 in forum Webmaster ResourcesReplies: 14Last Post: 11th Mar 2011, 09:26 PM -
batch insert texts to the beginning of multiple files
By techdaemon in forum Technical Help Desk SupportReplies: 1Last Post: 22nd Jan 2011, 08:02 PM -
Renaming Multiple Files in SSH
By Crucify in forum Technical Help Desk SupportReplies: 6Last Post: 29th Jun 2009, 04:37 PM
themaRegister - register to forums...
Version 3.54 released. Open older version (or...