User: Verotiana -- 2014-04-30 << 1198 1200 >> |
Hits: 3175 |
Type: Advanced search and replace |
Search all Advanced search and replace examples |
Description: |
How to replace the second column of a file with an increasing sequence number? |
Input Sample: |
CBR 18 21 0 127 10S 4S 0S PRECEDENCE 0 CBR 19 21 0 127 10S 5S 0S PRECEDENCE 0 CBR 20 21 0 127 10S 6S 0S PRECEDENCE 0 CBR 1 21 0 127 10S 12S 0S PRECEDENCE 0 CBR 2 21 0 127 10S 10S 0S PRECEDENCE 0 CBR 3 21 0 127 10S 11S 0S PRECEDENCE 0 |
Output Sample: |
CBR 1 21 0 127 10S 4S 0S PRECEDENCE 0 CBR 2 21 0 127 10S 5S 0S PRECEDENCE 0 CBR 3 21 0 127 10S 6S 0S PRECEDENCE 0 CBR 4 21 0 127 10S 12S 0S PRECEDENCE 0 CBR 5 21 0 127 10S 10S 0S PRECEDENCE 0 CBR 6 21 0 127 10S 11S 0S 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 'Word' * set 'replace scope' to 'Line' * set 'unit number filter' to '2' * 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 contents between div tags with increasing number? (70%) How to replace the second column in a tab seperated file? (65%) How to replace the 7th column with increasing numbers between the specified range? (64%) How to replace file content in multiple files with corresponding filename? (63%) How to replace specified word with increasing binary sequence? (63%) How to replace the specified text with increasing HEX strings? (63%) How to replace strings in multiple files with a global increasing ID? (62%) How replace the words with specified format by adding a number? (61%) |
Check Demo of Advanced search and replace |
Keywords: |
increasing sequence increasing number increasing second column sequence number increas unit number filter number filter second sequence replace text with sequence number multiple files multiple file sequence number replace text with increasing number replace number in text with increasing number search and replace with increasing number search file and replace with increasing number search replace increasing number replace with increasing number |