cmd substring replace
# EXAMPLE: first sets variable A, then replaces the 'aaa' with 'bbb', and then echos the new variable
set "A=text aaa"
set "B=%A:aaa=bbb%"
echo %B%
# SYNTAX
# set "<intial-variable-name>=<intitial-value>"
# set "<new-variable-name>=%<intial-variable-name>:<substring-to-replace>=<replacing-substring>%"
# echo %<new-variable-name>%
Also in Shell:
- start mariadb on linux terminal
- commit the add complete folder to github
- redirect folder to 403
- git refusing to merge unrelated histories
- tfswitch install
- how to add regex to ls
- git stash save name
- add-apt-repository
- install chromedriver linux
- ubuntu 18.04 get public ip address
- git init repo
- how to revert to previous kernel ubuntu
- pyinstaller statsmodels
- remove mongo lock file from centos 7
- powershell script enable tls 1.2
- git remove remote file keep local
- git use file credential
- git reset remote
- How do I do 'dir /s /b' in PowerShell?
- git reset remote origin
- Failed at the [email protected] postinstall script.
- install node 12 linux terminal w10
- htaccess route to index.php
- comment in shell script