小编Tom*_*ley的帖子

从文件中删除重复行但保留 1 次出现

我想从文件中删除重复的行,但在文件中留下 1 次。

文件示例:

this is a string
test line
test line 2
this is a string
Run Code Online (Sandbox Code Playgroud)

从上面的例子中,我想删除 1 个“这是一个字符串”。

最好的方法来做到这一点?

linux text-processing

6
推荐指数
3
解决办法
2万
查看次数

标签 统计

linux ×1

text-processing ×1