用批处理当题目做:- @echo off
- setlocal enabledelayedexpansion
- for /f %%a in (a.txt) do (
- set str=%%a
- echo,1!str:~-3!_!str!
- )>>temp1.txt
- sort temp1.txt>temp2.txt
- for /f "delims=_ tokens=1,2" %%i in (temp2.txt) do (
- echo %%j
- )>>reoder.txt
- echo,over&pause>nul
- del /f /q temp?.txt
复制代码
|