
| Quote: | |
|
CODE: [Copy to clipboard][ Last edited by tireless on 2009-1-6 at 12:57 ]@echo off
(for /f "delims=" %%a in (a.txt) do (
echo.%%a
set /a "n+=1,1/(n%%4)" 2>nul||echo.
))>a4.txt
CODE: [Copy to clipboard]@echo off
(for /f "delims=" %%a in (a.txt) do (
set "str=%%a"
setlocal enabledelayedexpansion
if "!str:~,5!"=="aaaaa" echo.
echo.!str!
endlocal
))>aaaaa.txt
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |