- @echo off
- setlocal enabledelayedexpansion
- (for /l %%i in (1,1,1000) do (
- for /f "delims=;" %%a in ('findstr "points.[1-9][0-9]*,[1-9][0-9]*;[1-9][0-9]*,[1-9][0-9]*" %%i.result.g2x') do (
- set "str=%%a"
- echo,%%i,!str!
- )
- ))>New.csv
- pause
复制代码 .csv文件可以用Excel打开。 |