Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

571.Advanced search and replace -- How to remove all the lines that with odd line number for multiple files?

User: editor -- 2010-07-23          << 570  572 >>
Hits: 403
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to remove all the lines that with odd line number for multiple files?
Input Sample:
line1
line2
line3
line4
line5
Output Sample:
line2
line4
line6
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open "Tools->Batch Runner" window
2. drag all files from "Windows File Browser" to "Batch Runner" window
3. click "Fast Replace", button
* click "Add", in "search=>", enter:

* in "Replace=>", enter:

4. click "Start", done!

Screenshot 1:  Fast_Replace_Window


Similar Examples:
How to extract all lines whose line numbers are multiple of 3? (71%)
How to remove additional line breaks from multiple files? (70%)
How to remove all lines that have duplicate contents in CSV files? (70%)
How to move the last line to the beginning for multiple text files? (66%)
How to remove/delete first column for multiple files? (66%)
How to remove all lines that contain some specific strings in a text file? (65%)
How to findout all lines that contain specified words in multiple files? (65%)
How to sort all the lines of a text file by order the multiple columns? (65%)

Check Demo of Advanced search and replace
Keywords:
odd  odd line  fast replace  fas  fast  line number  windows  row  how to remove  remove  search and replace odd lines  search and replace multiple lines  remove line from  remove multiple  remove lines all  remove number  remove all line  remove lines