Byte counter
This simple C program counts the frequency of each byte in standard input or in one or more files. You can specify the names of the files to read as command-line arguments or as a list in standard input or in a file. You can customize the format of the output.
Download
Compile
After downloading and unpacking the source file, you can compile the executable file with a command like make or gcc -o bytes bytes.c.
Example: count bytes in standard input
echo test | ./bytes 10 '\n' 1 101 'e' 1 115 's' 1 116 't' 2 5