jave000 当前离线
二级士官
TOP
newswan 当前离线
上尉
$dest = "D:\" Test-Path $dest\1复制代码
Get-Item *.txt | ForEach-Object { (Get-Content $_) -match "\s{3}\d+\s" ` -replace "^\s+(\d+)\s+([\d.]+)\s+",($_.BaseName + "`t`$1`t`$2`t") ` -replace "\s+$","" ` -replace "\s{2,}","`t" ` -replace "(?=Baseplate)","`t" ` } | Out-File list.csv复制代码
评分人数
qixiaobin0715 当前在线
大校
Get-Item *.txt | ForEach-Object { (Get-Content $_) -match "\s{3}\d+\s" ` -replace "^\s+(\d+)\s+([\d.]+)\s+",($_.BaseName + ",`$1,`$2,") ` -replace "\s+$","" ` -replace "\s{2,}","," ` -replace "(?=Baseplate)","," ` } | Out-File list复制代码