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: 1011
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove all lines with even line number?
Input Sample:
Line1 ...
Line2 ...
Line3 ...
Line4 ...
...
Output Sample:
Line1 ...
Line3 ...
...
Answer:
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/290.rst.zip

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/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 all the lines that with odd line number for multiple files? (65%)
How to remove/delete all underscores in filenames of all files in a directory? (64%)

Check Demo of Advanced search and replace
Keywords:
even  increase  delete all lines  increas  unit number filter  number filter  remove all line  filter  delete  dele  remove even lines  remove line from  remove lines all  remove number  remove lines  remove lines file  search by number  remove line and