删除记事本++中的重复行 [英] Removing duplicate rows in Notepad++

查看:29
本文介绍了删除记事本++中的重复行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 Notepad++ 中删除重复的行,只留下一行?

Is it possible to remove duplicated rows in Notepad++, leaving only a single occurrence of a line?

推荐答案

带有 TextFX 插件的 Notepad++ 可以做到这一点,前提是您想按行排序,同时删除重复的行.

要在最新版本的 Notepad++ 中安装 TextFX,您需要从此处下载:https://sourceforge.net/projects/npp-plugins/files/TextFX

To install the TextFX in the latest release of Notepad++ you need to download it from here: https://sourceforge.net/projects/npp-plugins/files/TextFX

TextFX 插件曾经包含在旧版本的 Notepad++ 中,或者可以通过转到 Plugins -> 从菜单中添加.插件管理器 ->显示插件管理器 ->可用选项卡->文本FX->安装.在某些情况下,它也可能被称为 TextFX Characters,但这是同一回事.

The TextFX plugin used to be included in older versions of Notepad++, or be possible to add from the menu by going to Plugins -> Plugin Manager -> Show Plugin Manager -> Available tab -> TextFX -> Install. In some cases it may also be called TextFX Characters, but this is the same thing.

所需的复选框和按钮现在将出现在以下菜单中:TextFX ->TextFX 工具.

The check boxes and buttons required will now appear in the menu under: TextFX -> TextFX Tools.

确保仅对输出进行排序..."被检查.接下来,选择一个文本块(Ctrl+A 选择整个文档).最后,单击排序行区分大小写";或排序行不区分大小写"

Make sure "sort outputs only unique..." is checked. Next, select a block of text (Ctrl+A to select the entire document). Finally, click "sort lines case sensitive" or "sort lines case insensitive"

这篇关于删除记事本++中的重复行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆