aloha20200628 当前离线
上尉
@echo off &setlocal enabledelayedexpansion (echo,No X-Point Y-Point for /f "tokens=1-3 delims= " %%a in ('findstr /rbc:"[0-9][0-9]* " "源文件.csv" ') do ( if %%a gtr !lastK! (echo,%%a %%b %%c&set "lastK=%%a") ))>"输出结果.csv" &endlocal&pause&exit/b复制代码
TOP
77七 当前离线
中校
haichuan5121 当前离线
三级士官
@echo 0ff cd /d "%~dp0" ( echo No,X-Point,Y-Point for /f "tokens=1-3 delims=," %%a in ('findstr /rbc:"[0-9][0-9]*,[0-9.][0-9.]*,[0-9.][0-9.]*" "1.csv"') do ( if not defined _"%%a %%b %%c" ( echo %%a,%%b,%%c set _"%%a %%b %%c"=1 ) ) ) > "2.csv" pause复制代码
@echo off cd /d "%~dp0" (for /f "delims=" %%a in ('more "1.txt"') do ( set str=%%a setlocal enabledelayedexpansion set "str=!str: =,!" echo=!str! endlocal ))>1.csv pause复制代码
qixiaobin0715 当前离线
大校