|
|
本帖最后由 thp2008 于 2021-3-30 10:11 编辑
源文件
1、AAA.txt
https://www.xigua.com/view_video.php?view=m604a630edd040
https://www.xigua.com/view_video.php?view=m60261926f38a5
https://www.xigua.com/view_video.php?view=m5fdcb7249a004
https://www.xigua.com/view_video.php?view=m5e80d9ed27871
https://www.xigua.com/view_video.php?view=m5f9c775cb3dc1
https://www.xigua.com/view_video.php?view=m6057900f86d5e
https://www.xigua.com/view_video.php?view=m5f7f16b208e42
https://www.xigua.com/view_video.php?view=m60271ee9c3642
https://www.xigua.com/view_video.php?view=m605cd58a890b3
https://www.xigua.com/view_video.php?view=m60030a961e34a
https://www.xigua.com/view_video.php?view=m604e3a822dd61
https://www.xigua.com/view_video.php?view=m5f70cc4b8f31b
https://www.xigua.com/view_video.php?view=m6055ce153a579
https://www.xigua.com/view_video.php?view=m6031dad48532b
https://www.xigua.com/view_video.php?view=m5e29b1373d0f1
https://www.xigua.com/view_video.php?view=m6044dd19361f6
........................
此处省略N行
2、需要对比的文件BBB.txt
https://www.xigua.com/view_video.php?view=m604a630edd040
https://www.xigua.com/view_video.php?view=m60299e235b243
https://www.xigua.com/view_video.php?view=m60417e1fd4156
https://www.xigua.com/view_video.php?view=m5f7f16b208e42
https://www.xigua.com/view_video.php?view=m60383bd87b094
https://www.xigua.com/view_video.php?view=m6038f35c2a72e
https://www.xigua.com/view_video.php?view=m5fdcb7249a004
https://www.xigua.com/view_video.php?view=m6024535c84794
..........................
此处省略N行
我需要将BBB.txt跟源文件AAA.txt的内容进行比较,整行进行比较,忽略大小写。
要求:
1、如果BBB.txt中的内容,有跟源文件相同的部分,请将相同的行显示出来,不要显示AAA.txt,只要显示BBB.txt,就好了。暂停一下,等我确认一下。然后从BBB.TXT中删除跟源文件AAA.txt中相同的行。(不要对源文件AAA.txt有任何操作,源文件AAA.txt只用于比对源)
2、上一步完成后,检查一下BBB.txt中是否有空行,将空行删除,然后BBB.txt和AAA.txt的全部行进行合并,合并后的新文件为ccc.txt.(不要对源文件AAA.txt有任何操作,源文件AAA.txt只用于合并源)
如果第三方命令行工具,更好用,更高效的话,也可以使用第三方命令行。如果没有,使用批处理也可以,PowerShell也行(如果是PowerShell,请写成CMD格式)
万分感谢! |
|