- commit
- c66c6ae
- parent
- fb2cc4c
- author
- Neale Pickett
- date
- 2023-11-15 14:09:28 -0700 MST
Make should make printy. Also docs.
M
Makefile
+1,
-0
1@@ -16,6 +16,7 @@ TARGETS += hex
2 TARGETS += entropy
3 TARGETS += freq
4 TARGETS += histogram
5+TARGETS += printy
6
7 SCRIPTS += octets
8
+13,
-0
1@@ -232,6 +232,19 @@ Displays the Shannon entropy of the input.
2 0.865857
3
4
5+## printy: show density of printable octets
6+
7+Displays the number of printable octets
8+divided by the total number of octets.
9+
10+ $ echo -n abcd | ./printy
11+ 1.000000
12+ $ echo abcd | ./printy # Newline is not printable
13+ 0.800000
14+ $ echo 00 41 | ./unhex | ./printy
15+ 0.500000
16+
17+
18 ## pyesc: python escape input
19
20 Escapes input octets for pasting into a python "print" statement.