Merge branch 'master' of github.com:informatimago/bin

Pascal J. Bourguignon [2019-01-16 09:50]
Merge branch 'master' of github.com:informatimago/bin
Filename
odc
diff --git a/odc b/odc
new file mode 100755
index 0000000..267bc87
--- /dev/null
+++ b/odc
@@ -0,0 +1,6 @@
+#!/bin/bash
+od -t x1 \
+| ( echo 'static unsigned char buffer[]={'
+    sed -e 's/^[0-9a-fA-F]*\( \|$\)/ /' -e 's/\([0-9a-fA-F][0-9a-fA-F]\)/0x\1,/g'
+    echo '};' )
+
ViewGit