Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

130.Advanced search and replace -- How to delete duplicate lines of a text file?

User: editor -- 2008-05-18          << 129  131 >>
Hits: 1520
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to delete duplicate lines of a text file?
Answer:
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 unit' to 'Line'
* set 'Search for pattern':

* set 'Replace with pattern':

in 'Advanced' page,
* set 'Run following at the beginning of text':

* set 'Run following for each matched unit':

3. click 'Replace', done.
Note: above operation will not break the order of original lines
Download Script:  scripts/130.rst.zip

Screenshot 1:  Replace_Window


Screenshot 2:  Replace_Advanced_Window


Similar Examples:
How to sort and delete duplicate lines of a text file? (93%)
How to remove/delete consecutive duplicate lines in a text file? (80%)
How to delete duplicate numbers in every line in text file? (80%)
How to remove partially duplicated lines in a text file? (78%)
How to duplicate each line 5 times in a text file? (76%)
How to replace all duplicate lines with some text? (74%)
How to remove/delete all blank lines in a text file? (74%)
How to delete the first word in each line in a text file? (72%)

Check Demo of Advanced search and replace
Keywords:
delete duplicate lines of a text file  how to delete duplicate lines  delete duplicate lines  delete duplicate line  delete duplicate  break  duplicate lines  duplicate line  else  duplicate  page break  delete duplicate text  replace duplicate lines with  replace duplicate lines  delete following  replace duplicate  search delete lines  duplicate file