From: short <> Date: Mon, 5 Nov 2001 08:02:53 +0000 (+0000) Subject: Converts 0-9a-fA-F text files to their binary form X-Git-Tag: rh72~9 X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=df154b1c8abd691b85427a5165023a8e46613d7c;ds=sidebyside Converts 0-9a-fA-F text files to their binary form --- 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})//); + }