User: editor -- 2011-05-30 << 790 792 >> |
Hits: 3571 |
Type: Count and statistics |
Search all Count and statistics examples |
Description: |
How to count and sort the occurrence of different numbers in a text file? |
Input Sample: |
File: numbers.txt 023 089 045 096 033 027 056 030 029 058 077 033 056 004 077 045 027 027 029 045 027 |
Output Sample: |
4 027 3 045 2 033 2 077 2 029 2 056 1 030 1 004 1 089 1 058 1 023 1 096 |
Answer: |
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps. |
1. open "Tools->Patter Counter" menu 2. set "Source" to "File/http", and select the file number.txt in the following entry 3. set "Counter template" to "Numbers, Punctuations, Spaces, Symbols" 4. select the item "Numbers" from the list, and click "Detail" button. 5. the statistics will be pop-up, click "copy" to put the result to clipboard. Note: pattern means consecutive digits |
Screenshot 1: Pattern_Counter_Window |