This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Clear-Host | |
# TODO: Load this hash table from your CSV source (using Import-Csv) | |
[hashtable] $urls = New-Object hashtable | |
$urls.Add("https://www.old.com/1", "https://www.new.com/1") | |
$urls.Add("https://www.old.com/2", "https://www.new.com/2") | |
# TODO: Change the -Path value here to the desired path | |
Get-ChildItem -Path "." -Filter "*.txt" | ForEach-Object { |