Created
May 19, 2023 15:08
-
-
Save yzorg/9da3b63965e0da5f857eefe685ee6795 to your computer and use it in GitHub Desktop.
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
cd ~/source/myapp/ui | |
$files = (ll -r *.yml | sls -SimpleMatch 'APPOFFICEODATA_URL'); | |
$files | |
#$files2 = $files[8..14] | |
#foreach ($f in $files2) { | |
foreach ($f in $files) { | |
sed -i "$($f.LineNumber - 1) a\ - APPDATA_URL=/myapp/admin" $f.Path | tee.exe -a sed-log.log; | |
echo (" APPDATA_URL added to "+$f.Path) | tee.exe -a sed-log.log; | |
pause | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment