mirror of https://github.com/dirtbags/fluffy.git
Make should make printy. Also docs.
This commit is contained in:
parent
fb2cc4c44d
commit
c66c6aea95
1
Makefile
1
Makefile
|
@ -16,6 +16,7 @@ TARGETS += hex
|
|||
TARGETS += entropy
|
||||
TARGETS += freq
|
||||
TARGETS += histogram
|
||||
TARGETS += printy
|
||||
|
||||
SCRIPTS += octets
|
||||
|
||||
|
|
13
README.md
13
README.md
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue