我有一个文本文件,其内容如下:
Fri Oct 02 19:52:02 +0000 2009 | JeLLz Mamii;) | DopeAssDarLey | my b.i⥠BITCH!! | @_steffhoney lmfao oh Dayum gull inee hihup Walmart en boiy maself sum skoo sepplies
Tue Aug 30 23:29:47 +0000 2011 | Braydon Tyrrell | braydon_tyrrell | westlock. AB. canada | RT @Darkskin: RT @JazmineDukes: @Darkskin Who are you that U have a blue check mark by ur name?? <
I polish shoes at Walmart while pp ...
可以看出“我擦鞋..”是第二条记录的一部分Tues Aug 30
。但是在处理此文件时,它被视为第三条完全不同的记录。
我希望能够将“我擦鞋”行与它之前的行合并,即“用你的名字打勾??” 有没有办法做到这一点。文件中的许多记录中都存在这种异常情况。所以我需要能够为所有此类记录执行此操作,以便我的输出看起来像
Fri Oct 02 19:52:02 +0000 2009 | JeLLz Mamii;) | DopeAssDarLey | my b.i⥠BITCH!! | @_steffhoney lmfao oh Dayum gull inee hihup Walmart en boiy maself sum skoo sepplies
Tue Aug 30 23:29:47 +0000 2011 | Braydon Tyrrell | braydon_tyrrell | westlock. AB. canada | RT @Darkskin: RT @JazmineDukes: @Darkskin Who are you that U have a blue check mark by ur name?? < I polish shoes at Walmart while pp ...