| User: editor -- 2010-02-23 << 428 430 >> |
| Hits: 3393 |
| Type: Advanced search and replace |
| Search all Advanced search and replace examples |
| Description: |
| How to format all the data in the text file with 8.2 format? I have a text file with some data, how to format them to format of 00000000.00? |
| Input Sample: |
| 3322.8 55501.83 4422.2 279.10 632544.9 |
| Output Sample: |
| 00003322.80 00055501.83 00004422.20 00000279.10 00632544.90 |
| 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 * in 'search for pattern', enter: * in 'replace with pattern', enter: 3. click 'Replace', done! 4. ctrl-s save to file Note: 011.2f means the number has length of 11 with 2 decimals. |
| Download Script: scripts/429.rst.zip |
Screenshot 1: Replace_Window |
Similar Examples: |
| How to convert each line of a text file to the new format? (68%) How to sort all the lines of a text file randomly? (66%) How to change the numbering format in a text file to a new format? (63%) How to convert a text file to specified format? (63%) How to extract all IP address from a text file? (63%) How to multiply all money amount in a text file by 9? (63%) How to change each line of data to the specified format? (62%) How to extract all html address from a text file? (61%) |
Check Demo of Advanced search and replace |
| Keywords: |
| decimal length dec data calc format means mean cal enter number length length replace file number format search data how to replace some text in replace with data data replace format a text file |