Skip to content

Instantly share code, notes, and snippets.

@yzorg
Created May 19, 2023 15:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yzorg/9da3b63965e0da5f857eefe685ee6795 to your computer and use it in GitHub Desktop.
Save yzorg/9da3b63965e0da5f857eefe685ee6795 to your computer and use it in GitHub Desktop.
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