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-08-01 10:20
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to delete the contents of one file from another file View 14,371 Replies 0
Original Poster Posted 2019-01-12 10:14 ·  中国 浙江 杭州 电信
新手上路
Credits 4
Posts 1
Joined 2017-05-28 21:22
9-year member
UID 182293
Gender Male
Status Offline
There are 2 files, one a.txt and one b.txt. How to delete the common parts.
I searched on Baidu and it seems to be findstr /ivg:aa.txt bb.txt but if there are \ it can't be deleted and the search result is partial. If it's just \ I can search and replace in advance.
There is also a two - layer for loop, but the amount of matching file content is a bit large.
Is there another method to implement
Forum Jump: