Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

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>%
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell pip CERTIFICATE_VERIFY_FAILED 
Shell :: ls bs date 
Shell :: how to give permission to a user in linux on a folder 
Shell :: how to enable camera in ubuntu 
Shell :: pip install requireents 
Shell :: github create repo 
Shell :: git command line discard changes 
Shell :: jitsi run pod ios app !] Invalid `Podfile` file: cannot load such fil 
Shell :: compress a folder in ubuntu 
Shell :: remobve git remote 
Shell :: git checkout 
Shell :: how to install nvm in ubuntu 18.04 
Shell :: iptables remove docker rules 
Shell :: linux wifi connected but no internet 
Shell :: Count subdirectories within a directory 
Shell :: ssh command delete file 
Shell :: crontab error log 
Shell :: bash find text in specific file 
Shell :: bash multiline ech 
Shell :: how to unzip using tar 
Shell :: get path of command ubuntu 
Shell :: hide desktop icons macos 
Shell :: shell script if input is empty 
Shell :: elasticsearch get indices regex 
Shell :: how to totally uninstall prettier 
Shell :: create usb install windows 10 on ubuntu 
Shell :: leaflet install yarn 
Shell :: apt update package 
Shell :: linux find where file is mounted 
Shell :: github actions set ssh key 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =