git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5ab650
)
Converts 0-9a-fA-F text files to their binary form
author
short
<>
Mon, 5 Nov 2001 08:02:53 +0000
(08:02 +0000)
committer
short
<>
Mon, 5 Nov 2001 08:02:53 +0000
(08:02 +0000)
bin/fromhex
[new file with mode: 0755]
patch
|
blob
diff --git a/bin/fromhex
b/bin/fromhex
new file mode 100755
(executable)
index 0000000..
b92d1b4
--- /dev/null
+++ b/
bin/fromhex
@@ -0,0
+1,8
@@
+#! /usr/bin/perl
+
+use strict;
+use warnings;
+
+while (<>) {
+ printf("%c",hex($1)) while ($_=~s/([[:xdigit:]]{2})//);
+ }