- sort line with Edit -> Line Operations -> Sort Lines Lexicographically ascending
- do a Find / Replace:
- Find What:
^(.*\r?\n)\1+
- Replace with: (Nothing, leave empty)
- Check Regular Expression in the lower left
- Click Replace All
- Find What:
转载于:https://www.cnblogs.com/kakaisgood/p/8759959.html