I would like to search thru files with .token files that have a string with the following pattern __[characters]__
and perform the following via PowerShell:
- remove "__" (two underscores) in front of any character with an "#{"
- remove "__" (two underscores) at the end of the same character and replace with "}"
For example:
__STAGE__
to
#{STAGE}
I am migrating RM token files to Octopus Deploy and need a clean up step via scripting.