• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Need to find/replace text in multiple files

Crafty35a

Senior member
I have hundreds of text files (wel, not actually text files, but they just contain plain text) in which I need to replace a particular string of text with another string. I just need a utility to allow me to do this, hopefully just letting me set it loose on a folder containing many files. Anyone know of one?

Thanks!
 
sed will do what you want. Do you have a Linux box nearby? That has sed on it.

If the version of sed you have has in-place editing you just do:

sed -i 's/string1/string2/g' *


You can do lots of cool stuff with it when combined with some shell scripts.
 
UltraEdit has a find and replace function that will let you search all files in a folder (or your entire hard drive if you want to) and replace all instances of a text string that it finds.
 
Back
Top