From df154b1c8abd691b85427a5165023a8e46613d7c Mon Sep 17 00:00:00 2001 From: short <> Date: Mon, 5 Nov 2001 08:02:53 +0000 Subject: [PATCH 1/1] Converts 0-9a-fA-F text files to their binary form --- bin/fromhex | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 bin/fromhex diff --git a/bin/fromhex b/bin/fromhex new file mode 100755 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})//); + } -- 1.8.3.1