php txt删除重复行,在PHP中删除多(2)个文本文件中的重复行

我有2.txt文件。

txt文件是curl data(robot),它总是得到2000.txt行,包括新的行

第二个.txt文件有第一个.txt文件的新数据。

我使用第二个.txt文件作为脚本。在

我不能去掉那些可疑的东西。(我的意思是我尝试根据旧值获取新值)所以脚本总是使用新的和旧的数据。在

是否有方法打开所有文件,删除重复项并将行相应地保存到第二个文件中?

有三个例子here is FIRST refresh and 2 .txt files

first.txt文件(您应该认为它有2000行)refresh curl robotSomething here10

Something here9

Something here8

Something here7

Something here6

Something here5

Something here4

Something here3

Something here2

Something here1

我将使用的第二个.txt文件Something here10

Something here9

Something here8

Something here7

Something here6

Something here5

Something here4

Something here3

Something here2

Something here1here is SECOND refresh and 2 .txt files

first.txt文件(您应该认为它有2000行)refresh curl botSomething here14

Something here13

Something here12

Something here11

Something here10

Something here9

Something here8

Something here7

Something here6

Something here5

我将使用的第二个.txt文件Something here14

Something here13

Something here12

Something here11here is THIRD refresh and 2 .txt files

first.txt文件(您应该认为它有2000行)refresh curl botSomething here16

Something here15

Something here14

Something here13

Something here12

Something here11

Something here10

Something here9

Something here8

Something here7

我将使用的第二个.txt文件Something here16

Something here15

编辑:

我发布了两个新的更新here is FOURTH refresh and 2 .txt files

first.txt文件(您应该认为它有2000行)refresh curl botSomething here20

Something here19

Something here18

Something here17

Something here16

Something here15

Something here14

Something here13

Something here12

Something here11

我将使用的第二个.txt文件Something here20

Something here19

Something here18

Something here17here is FIFTH refresh and 2 .txt files

first.txt文件(您应该认为它有2000行)refresh curl botSomething here24

Something here23

Something here22

Something here21

Something here20

Something here19

Something here18

Something here17

Something here16

Something here15

我将使用的第二个.txt文件Something here24

Something here23

Something here22

Something here21

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值