This file contains hidden or 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
| #!/bin/bash | |
| # Base path to prepend to each file | |
| base_path={PATH HERE} | |
| # Check if any file paths were provided | |
| if [ "$#" -eq 0 ]; then | |
| echo "Usage: $0 <file paths>" | |
| exit 1 | |
| fi |
This file contains hidden or 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
| ## GuidSwap.ps1 | |
| ## | |
| ## Reads a file, finds any GUIDs in the file, and swaps them for a NewGUID | |
| ## | |
| # Paste whichever file you'd like to execute this script for | |
| # IMPORTANT. | |
| $filename = "{FILEPATH HERE}" | |
| $text = [string]::join([environment]::newline, (get-content -path $filename)) |