| User: shanfeng -- 2015-02-04 << 1278 1280 >> |
| Hits: 2928 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to replace the space with its nearest different words in the same column? |
| Input Sample: |
| 1 2 2 3 2 3 2 1 1 4 2 3 1 |
| Output Sample: |
| 1 2 2 3 2 2 2 3 3 2 1 1 4 2 3 1 |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open file 2. ctrl-h open 'replace' dialoguereplace with pattern' * set 'replace unit' to 'Line * set 'replace with pattern' * click 'advanced' tab, set 'run following for each matched unit' to: 3. click 'replace', done. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |