本帖最后由 xczxczxcz 于 2019-7-26 15:27 编辑
- $f =gc 1.txt -readcount 0;
- $x =[regex]::matches($f,'(?is)(?<=\bx=")[\d.]+').value;
- $y =[regex]::matches($f,'(?!s)(?<=\by=")[\d.]+').value;
- $out ='x="'+($x -join ',')+'"'+"`n"+'y="'+($y -join ',')+'"'
- sc '.\2.txt' -value $out -force;
复制代码
|