Make should make printy. Also docs.

This commit is contained in:
Neale Pickett 2023-11-15 14:09:28 -07:00
parent fb2cc4c44d
commit c66c6aea95
2 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,7 @@ TARGETS += hex
TARGETS += entropy
TARGETS += freq
TARGETS += histogram
TARGETS += printy
SCRIPTS += octets

View File

@ -232,6 +232,19 @@ Displays the Shannon entropy of the input.
0.865857
## printy: show density of printable octets
Displays the number of printable octets
divided by the total number of octets.
$ echo -n abcd | ./printy
1.000000
$ echo abcd | ./printy # Newline is not printable
0.800000
$ echo 00 41 | ./unhex | ./printy
0.500000
## pyesc: python escape input
Escapes input octets for pasting into a python "print" statement.