| User: editor -- 2011-01-07 << 692 694 >> |
| Hits: 421 |
| Type: Text sort |
| Search all Text sort examples |
| Description: |
| How to sort lines of text file by the comparing the sum of column1,2 and 3? |
| Input Sample: |
| 1 4 5 2 9 7 3 1 3 4 6 2 5 3 9 |
| Output Sample: |
| 3 1 3 1 4 5 4 6 2 5 3 9 2 9 7 |
| Answer: |
| Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
| 1. ctrl-o open source text file 2. ctrl-h open replace window * set 'replace with pattern' to: * click 'advanced' tab, fill "run following at the beginning of replace" like: 3. click 'replace', done! 4. ctrl-s save to file. |
Screenshot 1: Replace_Window |
Screenshot 2: Replace_Advanced_Window |