mwcollect-dump

Read long hexstrings (e.g. ff0024fe7b909090) and the write binary representation on stdout. Usage mwcollect-dump.pl STRING.

#!/usr/bin/perl
 
$data = $ARGV[0];
 
while( $data =~ /^([0-9a-fA-F]{2})(.*)$/g )
{
        printf("%c", hex($1));
        $data = $2;
}
 
snippets/mwcollect-dump.txt · Last modified: 2006/02/17 14:01
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki