China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-24 06:49
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Remove duplicate lines View 2,472 Replies 16
Floor 16 Posted 2008-02-27 14:26 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Improve the one in floor 2:
@echo off
cd.>b.txt
for /f "eol= delims=" %%i in (a.txt) do (
findstr /xc:"%%i" b.txt >nul 2>nul||echo %%i>>b.txt
)
type b.txt
pause
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
xycoordinate +2 2009-04-05 02:37
Floor 17 Posted 2008-07-16 12:13 ·  中国 浙江 杭州 电信
新手上路
Credits 11
Posts 6
Joined 2008-05-01 20:37
18-year member
UID 117493
Gender Male
Status Offline
Dizzy, need to study hard呀,
Forum Jump: