How to delete a same word out of multiple text files?

drti

Banned
Mar 12, 2001
735
0
0
Hi, I have a bunch of text files, all of these text files contain a same word that you want to remove. Remove a word by going through file by file can be a painful job. Is there anyway that I can remove that word out of all the text files in one shot?

thanks.
 

Moonbender

Golden Member
Oct 19, 2000
1,046
0
0
I don't think you can do this with tools delivered with Windows (you certainly could with the tools typically available in a GNU/Linux environment), but I'm sure there are applications made to do exactly that. For instance, a text editor I use, Code-Genie has a Replace in files... function which would do the job.
 

damiano

Platinum Member
May 29, 2002
2,322
1
0
Ultra edit also has the replace in files... just replace "youword" with nothing :)
 

singh

Golden Member
Jul 5, 2001
1,449
0
0
Originally posted by: Moonbender
I don't think you can do this with tools delivered with Windows (you certainly could with the tools typically available in a GNU/Linux environment), but I'm sure there are applications made to do exactly that. For instance, a text editor I use, Code-Genie has a Replace in files... function which would do the job.

You can do it w/ Windows, but certainly not as easy as w/ *nix :) For instance, you could write a VBScript and use the Windows Scripting host to do it.

The easiest way is to just use one of the programs mentioned in the thread.
 

Moonbender

Golden Member
Oct 19, 2000
1,046
0
0
Of course, while we're already programming stuff, he might use a binary editor (or, heck, Notepad!) to create an EXE file from scratch that searches and replaces. ;)
But no, you're right of course, I hadn't thought of using the WSH.