Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

92.Advanced search and replace -- How to add a blank line after every 8 lines in text file?

User: editor -- 2008-05-13          << 91  93 >>
Hits: 489
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to add a blank line after every 8 lines in text file?
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
The solution is to and an additional <return> after line 8,16,24,32..., procedures:  
1. ctrl-o open source file  
2. ctrl-h open replace dialog,  
in 'Replace' page,  
1) set 'Replace Unit' to 'Line'
2) set Unit number filter:  
means 8,16,24,32,... (start by 8, step is 8)  
3) Search for pattern:  

4) Replace with pattern:  
the second \n is additional return
3. Click 'Replace', that's ok!  
Download Script:  scripts/92.rst.zip

Screenshot 1:  Replace_Window


Similar Examples:
How to insert a blank line after every 5 lines in a text file? (88%)
How to add a page number after every 40 lines in a text file? (79%)
How to add 3 spaces after every 9 characters in a text file? (73%)
How to insert a line after specific lines in a text file? (70%)
How to delete duplicate numbers in every line in text file? (67%)
How to batch remove/delete one blank line between each two lines in text file? (67%)
How to add one line after Sub or Function in the VBA Text File? (65%)
How to add a single space after each character in a text file? (65%)

Check Demo of Advanced search and replace
Keywords:
addition  nth  blank line  return  blank  second  after  unit number filter  number filter  every  add blank line after every line  add blank line every 3 lines  replace every second  add lines every lines  add line every lines  add text every 2 lines  add blank lines  add a return