📜  cmd 子字符串替换 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:52.259000             🧑  作者: Mango

代码示例1
# 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 "="
# set "=%:=%"
# echo %%