Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1016.Advanced search and replace -- How to delete lines that start with duplicate text?

User: Jamie -- 2012-10-17          << 1015  1017 >>
Hits: 2065
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to delete lines that start with duplicate text?
Input Sample:
111 4545667576887876867876876867 
111 7887686786786786786787687876 
112 4334808598458493598459349589 
113 4359058435743857348573485735 
113 4594593459495394539459345934 
113 5584853858345893458583085385 
114 3459359345934594395439594353
Output Sample:
111 4545667576887876867876876867 
112 4334808598458493598459349589 
113 4359058435743857348573485735 
114 3459359345934594395439594353
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open text file 
2. ctrl-h open 'replace' dialogue 
* set 'replace unit' to "Line" 
* set 'search for pattern' to: 
* set 'replace with pattern' to: 
* click 'advanced' tab 
* set 'run following at the beginning of replace' to: 
* set 'run following for each matched unit' to: 
3. click 'replace', done!

Screenshot 1:  Replace_Window

Screenshot 2:  Replace_Advanced_Window

Similar Examples:
How to delete from FILE A all lines that appear in file B? (64%)
How to sort lines that started with IP address? (63%)
How to remove all lines that have duplicate contents in CSV files? (63%)
How to delete all the lines without ceramics in text file? (62%)
How to delete duplicate lines of a text file? (61%)
How to replace line that contains no space? (60%)
How to delete all lines that contain only a word and a blank? (60%)
How to delete all lines appear in file B from file A? (60%)

Check Demo of Advanced search and replace
lines that start  toc  var  else  duplicate text  delete lines  duplicate  duplicat  dupl  values  search replace to delete duplicate lines  delete duplicate lines  delete lines start with  delete text at beginning  delete duplicate text  delete tab  delete duplicate  replace duplicate lines with