I am trying to use PowerShell do a simple find and replace. I use template text files and use $in front of values that need to be changed.
Example (Get-Content "D:\test") | Foreach-Object {$_ -replace "`$TBQUAL", "DBO"} | Set-Content "D:\test"
it should find the following line OWNER=$TBQUAL and make it look like this OWNER=DBO
I am using the escape ` in front of $TBQUAL with no luck. To test that it is working if I removed the $ from the front, it will replace TBQUAL and make it look like this OWNER=$DBO