中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-23 12:56
47,812 topics / 349,917 posts / today 0 new / 48,273 members
DOS批处理 & 脚本技术(批处理室) » How to delete the contents of one file from another file
Printable Version  14,504 / 0
Floor1 inori Posted 2019-01-12 10:14
新手上路 Posts 1 Credits 4
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
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023