📜  将破折号转换为下划线窗口 - Shell-Bash 代码示例

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

代码示例1
Setlocal enabledelayedexpansion

Set "Pattern=-"
Set "Replace=_"

For %%a in (*) Do (
Set "File=%%~a"
Ren "%%a" "!File:%Pattern%=%Replace%!"
)