Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

50.Advanced search and replace -- Join every 3 lines into one line

User: sysdemo -- 2007-11-24          << 49  51 >>
Hits: 2114
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
Join every 3 lines into one line
Input Sample:
line1
line2
line3
line4
line5
...
Output Sample:
line1 line2 line3
line4 line5 line6
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open the file 
2. ctrl-h open replace dialog: 
Settings: 
1) Replace unit=line
2) Search for pattern:

3) Unit number filter:

4) Replace with pattern:

3. Click 'Replace'
Download Script:  scripts/50.rst

Screenshot 1:  Replace_Window


Similar Examples:
How to join every n lines into 1 line in a text file? (70%)
How to join every 3 lines into 3 columns of csv file? (67%)
How to merge many files into one file? (62%)
How to join every 50 or 500 lines together in a text file? (59%)
How to merge every two lines into one line between (part1) and (partn)?  (56%)
How to merge every 3 lines from file A and every 1 line from file B? (55%)
How to put a list of names in different rows into one line? (54%)
How to join every sequential line with a random line in a text file? (53%)

Check Demo of Advanced search and replace
Keywords:
join every 3 lines into one line  join every 3 lines  unit number filter  number filter  settings  setting  into one line  every  filter  very  every line  number lines  replace every  line number  number line  search for number  search lines  search number