fork download
  1. dir | ?{$_ -match '^(.*?)(\d+)(\.[^.]*)?$'} | %{ ren $Matches[0] ("{0}{1:000}{2}" -f $Matches[1], [int]$Matches[2], $Matches[3]) }
Runtime error #stdin #stdout #stderr 0s 4236KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog.sh: line 1: syntax error near unexpected token `('
./prog.sh: line 1: `dir | ?{$_ -match '^(.*?)(\d+)(\.[^.]*)?$'} | %{ ren $Matches[0] ("{0}{1:000}{2}" -f $Matches[1], [int]$Matches[2], $Matches[3]) }'