1. 程式人生 > >批處理替換遞增數字

批處理替換遞增數字

param odin 遞增 批處理 ext string Coding regex pause

powershell -c "$text=[IO.File]::ReadAllText(‘文本.txt‘,[Text.Encoding]::Default);[regex]::Replace($text, ‘#‘, {param($m); ‘第‘+(++$n)+‘個‘})">"結果.txt"

pause

批處理替換遞增數字