BRONZE PARTNER:
BRONZE PARTNER:
Industry News:

| |
 |
 |
 |
| Use PowerShell to do a mass text replace |
 |
|
|
By: Rod Trent
Posted On: 7/8/2008
If you have a text, XML, or other text-based file in which you want to modify a string, use this Powershell one-liner.
Replace oldtext and newtext with the appropriate text strings.
=====================
dir | %{ $a = get-content $_ ; $a = $a -replace ("oldtext", "newtext") ; set-content $_ $a }
=====================
|
 |
 |
 |
|
|