Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

452.Count and statistics -- How to count the occurrance of each bytes from 00-FF in a binary file?

User: editor -- 2010-03-19          << 451  453 >>
Hits: 3023
Type: Count and statistics   
Search all Count and statistics examples
Description:
How to count the occurrance of each bytes from 00-FF in a binary file?
Input Sample:
a binary file
Output Sample:
00  120 times 
01  38 times 
02  xx times 
...
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. open 'Tools->Pattern Counter' menu 
2. select source to 'File/http', and select file at right entry. 
3. click 'clear' to clear default template 
4. select 'Regular Exp', 'Cross Line', 'Binary File' option 
5. click 'Add' button, and enter name like: 
 
enter pattern like: 
 
click 'ok' 
6. select the newly added line, and click 'detail', the occurrance of all bytes will be listed

Screenshot 1:  Pattern_Counter_Window


Similar Examples:
How to count the occurrence of a list of words in a text file? (65%)
How to count the occurrance of some specified words in many files? (65%)
How to count and sort the occurrence of different numbers in a text file? (62%)
How to count the occurrance of specific pattern in each line of text file? (60%)
Can I count the frequency of each word in a text file? (57%)
Can I count the appearance frequency of each character in a text file? (56%)
How to count the number of records for each month in a web log file? (55%)
How to remove the 120 bytes that followed by ABC in binary files? (55%)

Check Demo of Count and statistics
Keywords:
xff  occurrance  pattern counter  counter  bytes  binary file  binary fil  binary  bina  byte  count occurrance  line bytes  count each line  button click count  in binary  binary to  count line  line count