Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

1200.Advanced search and replace -- How to replace the 7th column with increasing numbers between the specified range?

User: Verotiana -- 2014-04-30          << 1199  1201 >>
Hits: 3277
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to replace the 7th column of the 1st to 5th line with a decreasing number between the range 26 to 22 and the 7th column of the 6th to 10th lines with an increasing number ranging between 22 to 26?
Input Sample:
CBR 11 121 0 127 60M 4 S 0 S PRECEDENCE 0  
CBR 12 121 0 127 60M 6 S 0 S PRECEDENCE 0  
CBR 13 121 0 127 60M 5 S 0 S PRECEDENCE 0  
CBR 14 121 0 127 60M 3 S 0 S PRECEDENCE 0  
CBR 15 121 0 127 60M 7 S 0 S PRECEDENCE 0  
CBR 16 121 0 127 60M 5 S 0 S PRECEDENCE 0  
CBR 17 121 0 127 60M 3 S 0 S PRECEDENCE 0  
CBR 18 121 0 127 60M 4 S 0 S PRECEDENCE 0  
CBR 19 121 0 127 60M 5 S 0 S PRECEDENCE 0  
CBR 20 121 0 127 60M 6 S 0 S PRECEDENCE 0 
Output Sample:
CBR 11 121 0 127 60M 26 S 0 S PRECEDENCE 0  
CBR 12 121 0 127 60M 25 S 0 S PRECEDENCE 0  
CBR 13 121 0 127 60M 24 S 0 S PRECEDENCE 0  
CBR 14 121 0 127 60M 23 S 0 S PRECEDENCE 0  
CBR 15 121 0 127 60M 22 S 0 S PRECEDENCE 0  
CBR 16 121 0 127 60M 22 S 0 S PRECEDENCE 0  
CBR 17 121 0 127 60M 23 S 0 S PRECEDENCE 0  
CBR 18 121 0 127 60M 24 S 0 S PRECEDENCE 0  
CBR 19 121 0 127 60M 25 S 0 S PRECEDENCE 0  
CBR 20 121 0 127 60M 26 S 0 S PRECEDENCE 0 
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 unit'  to 'Line' 
* set 'unit number filter' to : 
 
* set 'replace with pattern' to: 
 
3. click 'replace', done. 
 
For multiple file, click "batch..." button in step 3, and drag multiple files to "batch runner" dialogue, click "batch replace", done.

Screenshot 1:  Replace_Window


Similar Examples:
How to replace the second column of a file with an increasing number? (64%)
How to replace a word/string with increasing number in multiple files? (64%)
How to replace the certain column with specified words? (60%)
How to replace a word/string with increasing sequence number in a text file? (60%)
How to replace letters with predefined numbers in a text range? (59%)
How to replace old text with new text only in specified range? (59%)
How to replace all specified symbols with dot in specified range? (58%)
How to create a text file including filenames in a folder with specified format? (57%)

Check Demo of Advanced search and replace
Keywords:
the 6th  7th column  5th  increasing number  1st  range  increasing  scalar  increas  dec  text replace with increasing numbers  replace text with increasing numbers  text file with increasing numbers  increasing multiple numbers in text file  search and replace with increasing numbers  replace text in specified range  batch search between lines  number of words of multiple files