Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

791.Count and statistics -- How to count and sort the occurrence of different numbers in a text file?

User: editor -- 2011-05-30          << 790  792 >>
Hits: 2728
Type: Count and statistics   
Search all Count and statistics examples
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
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

Similar Examples:
How to count and sort the occurrance of different lines? (80%)
How to count the occurrence of a list of words in a text file? (76%)
How to count the occurrance of specific pattern in each line of text file? (67%)
How to compare and get the difference between numbers of two file? (64%)
How to find out the top 5 largest and distinct numbers in a text file? (64%)
How to count and sort the frequency of all words appeared in many text files? (64%)
How to count the frequency of different words in website like (63%)
How to replace a word/string with increasing sequence number in a text file? (60%)

Check Demo of Count and statistics
clipboard  pop  punctuation  unctuation  digits  symbols  consecutive  onsecutive  cut  counter  sort and count occurrence  consecutive numbers  count occurrence  sort numbers in text file  text sort count  list of numbers  count statistics in list  list numbers