Skip to content

Commit

Permalink
Make should make printy. Also docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neale Pickett committed Nov 15, 2023
1 parent fb2cc4c commit c66c6ae
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ TARGETS += hex
TARGETS += entropy
TARGETS += freq
TARGETS += histogram
TARGETS += printy

SCRIPTS += octets

Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c66c6ae

Please sign in to comment.