notepad++ 删除重复和原始行以保留唯一行 [英] notepad++ delete duplicate and original lines to keep unique lines
问题描述
我有一个包含许多重复行的文本文件,我正在寻找一种方法来删除这个重复行和记事本++中的原始行,以便我可以只保留唯一的行.
I have a text file with many duplicate lines and I am looking for a way to delete this duplicate and the original lines in notepad++, so that I can keep just the unique lines.
或者一种标记所有独特行的方法.或者标记所有重复项和原始项以手动删除它们.
Or a way to mark all the unique lines. Or to mark all duplicates and originals to remove them manually.
方式不是那么重要,但结果,我只需要独特的线条.
The way is not that important, but at the result, I just need the unique lines.
推荐答案
假设你的文件是这样的
然后选择文本并使用TextFX Tools
--> 对行进行排序不区分大小写(在列)
.确保您选择了 Sort output only UNIQUE (at columns) line
.
Then select the text and use TextFX Tools
--> Sort lines case insensitive (at column)
. Make sure that you have Sort outputs only UNIQUE (at columns) line
selected.
这篇关于notepad++ 删除重复和原始行以保留唯一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!