Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

131.Text sort -- How to sort and delete duplicate lines of a text file?

User: editor -- 2008-05-19          << 130  132 >>
Hits: 13476
Type: Text sort   
Search all Text sort examples
How to sort and delete duplicate lines of a text file? 
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. press ctrl-o open source file 
2. press ctrl-h open 'Replace' dialog 
in 'Replace' page, 
* set 'Replace with pattern': 
3. click 'Replace', done. 
sort_by_char($match,1,-1,'uniq') will sort the text by key from first char to last char in each line, 'uniq' means remove duplicate. 
Download Script:  scripts/

Screenshot 1:  Replace_Window

Similar Examples:
How to delete duplicate lines of a text file? (93%)
How to remove duplicate lines from a text file? (83%)
How to remove/delete consecutive duplicate lines in a text file? (77%)
How to remove partially duplicated lines in a text file? (77%)
How to delete duplicate numbers in every line in text file? (75%)
How to insert a line after specific lines in a text file? (73%)
How to duplicate each line 5 times in a text file? (71%)
How to remove/delete all blank lines in a text file? (71%)

Check Demo of Text sort
how to sort and delete duplicate lines of a text file  delete duplicate lines of a text file  delete duplicate lines  delete duplicate line  delete duplicate  duplicate lines  remove duplicate  remove duplicat  remove dupl  remove dup  delete last lines  delete the first and last lines  last line duplicate  duplicate last line  sort to delete duplicate lines  delete duplicate lines sort  text file sort and delete  sort and remove duplicate lines in text file