Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

290.Advanced search and replace -- How to remove/delete all lines with even line number?

User: editor -- 2008-11-02          << 289  291 >>
Hits: 3830
Type: Advanced search and replace   
Search all Advanced search and replace examples
How to remove all lines with even line number?
Input Sample:
Line1 ... 
Line2 ... 
Line3 ... 
Line4 ... 
Output Sample:
Line1 ... 
Line3 ... 
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source file  
2. ctrl-h open 'Replace' dialog  
in 'Replace' page  
* set 'Replace Unit' to 'Line' 
* set 'Unit Number Filter' to  
3. click 'Replace' button, all even lines will be removed. 
Note: 2<2> means 2,4,6,...(start from 2 and increased by 2)
Download Script:  scripts/

Screenshot 1:  Replace_Window

Similar Examples:
How to remove/delete all lines with even line number? (100%)
How to remove/delete all lines with three symbol '='? (75%)
How to remove/delete all lines containing '123456'? (69%)
How to remove all lines but the second line from bottom? (68%)
How to remove/delete all lines ending by a comma(,) in a text file? (68%)
How to remove/delete all text between '1:' and 'user:'? (68%)
How to remove/delete all blank lines in a text file? (68%)
How to remove/delete extra blank lines in multiple text files? (65%)

Check Demo of Advanced search and replace
even line  even  increase  delete all lines  increas  remove all lines  unit number filter  delete all  number filter  remove all line  remove even lines  remove line number  remove all number  remove line from  remove lines all  remove lines with  remove number  page number