Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1020.Advanced search and replace -- How to join all odd lines together and all even lines together?

User: happier -- 2012-10-30          << 1019  1021 >>
Hits: 1524
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
how to join lines?
Input Sample:
line1
line2
line3
line4
Output Sample:
line1,line3
line2,line4
Answer:
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 with pattern' to:

3. click 'replace', done.
4. ctrl-s save to file

Screenshot 1:  Replace_Window


Similar Examples:
How to add the numbers together in every 2 adjacent lines in text file? (63%)
How to join every 50 or 500 lines together in a text file? (61%)
How to join the specified 2 or 3 lines together alternatively in a text file? (61%)
How to merge odd lines from file1 and even lines from file2? (59%)
How to remove/delete all lines with even line number? (57%)
How to remove/delete all lines with even line number? (57%)
How to join groups of lines together in a text file according to user defined  rule? (55%)
How to join first half of One line with last half of another? (54%)

Check Demo of Advanced search and replace
Keywords:
odd lines  odd  odd line  transpose  even line  even  trans  together  how to join  join  odd even  even odd  search and replace odd lines  replace odd  search and replace join lines  join all lines  join lines  lines join