使用 RenameRegex (RR.exe) 作为 Windows 命令行批量重命名工具(OpenClaw),用于正则搜索/替换并预览(/p pretend)以及递归重命名。
RR.exe (RenameRegex) is available on PATH from the environment that runs the command.
~/.local/bin.Prefer running via Windows PowerShell 7 ( pwsh.exe) so Windows path semantics are authoritative.
/p)./f (force overwrite) unless the user explicitly asks.Use the bundled script to run RR.exe inside a chosen root folder.
/p automatically/pSee: scripts/rr_run.ps1
When calling from PowerShell, pass regex arguments like \s+ as a single backslash string.
Recommended: use single quotes to avoid accidental escaping:
@('*', '\s+', '_', '/r', '/e')