Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

774.Text file parser -- How to extract all lines whose line numbers are multiple of 3?

User: editor -- 2011-05-04          << 773  775 >>
Hits: 3360
Type: Text file parser   
Search all Text file parser examples
Description:
How to extract all lines whose line numbers are multiple of 3?
Input Sample:
line1 
line2 
line3 
line4 
line5 
line6 
line7 
...
Output Sample:
line3 
line6 
line9 
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file 
2. ctrl-h open 'replace' dialog 
* set 'replace unit' to 'Line' 
* set 'unit number filter' to: 
 
3. click 'replace', done! 
4. ctrl-s save to file.

Screenshot 1:  Replace_Window


Similar Examples:
How to extract all lines with numbers from many text files? (71%)
How to remove all the lines that with odd line number for multiple files? (71%)
How to extract all telephone numbers from a text file? (71%)
How to extract all lines that contain "abc" from multiple files? (69%)
How to extract all lines with more than 30 characters from multiple files? (69%)
How to extract all image links from multiple html files?  (66%)
How to extract all lines that has more than 2 numbers? (65%)
How to extract/parse all lines with number greater than 40? (65%)

Check Demo of Text file parser
Keywords:
line numbers  extract all lines  unit number filter  number filter  extract all line  filter  numbers  extract all  unit number  text file parser  extract numbers  extract lines text file line number  extract line number  extract number  extract multiple lines  replace multiple numbers  numbers line  text parser to extract lines