Use editplus to delete duplicate rows in a text file

Source: Internet
Author: User

Use editplus to delete duplicate rows in a text file]

Http://bbs.dianbo.org/viewthread.php? Tid = 6877

 

 

Today, I posted a list of executable commands for running options in the Start Menu. But I found that some rows have been repeated three times, and some rows have only been repeated once or twice. I thought of a post that I had previously posted: deleting the same line of vbs code in a text file, I copied it, but it always went wrong, I am dead. I just want to delete a record! So please get out editplus 3 (because you know it has a text sorting function), copy the post content, open the sorting menu item, but suddenly found the New World! Originally, editplus had the function of deleting the same row! See the figure below:

Thunder download: Download(60.65 KB)

According to law, some repeated rows are removed. However, take a closer look, there are still some records that are repeated. Why? And look at isaacz! Select all the text directly. Do you see that the length of the two duplicate rows is different! The original webpage text has some useless spaces at the end of the line. Let's replace it with all!

Thunder download: Download(67.38 KB)

Replacing "Space + linefeed" with a line break is equivalent to deleting spaces at the end of a line!
(For more advanced editplus skills, see editplus usage tips)

In this way, make the same row length equal, and then use the "Remove duplicate" function in "sort" to remove all repeated rows!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.