PS2.0 当前离线
上等兵
$folder = "bathome.net" New-Item "$folder" -ItemType directory Get-ChildItem *.txt | %{ $NewName = $folder + '\' + $_.Name Get-Content $_ | %{ $a = $_ -split ','; $a[6]=$a[4]; $a -join ',' } | Out-File "$NewName" }复制代码
TOP
qazplm 当前离线
[void](md ($fd='result\') -for); dir . *.txt|%{gc $_|%{ $_ -replace '^((?:[^,]+,){4}([^,]+),.+?,)[^,]+$','$1$2'; }|out-file ($fd+$_.Name) -enc default; }复制代码
评分人数