$> hdr - hexdump range
$> hdr -r range_definitions file_to_dump $> hdr file_to_dump -r 'header,40, yellow:padding,24:magic,16,red:size,4:data,100:footer,16' -o ver
head1 OPTIONS
range_description|r file name containing a description or a string description formated as: 'color:name,size:name,size,color:...' orientation|o 'horizontal' or 'vertical' display_column_names 1 == display columns names format|f 'ANSI' or 'ASCII' or 'HTML' color 'bw' or 'cycle', data_width number of bytes per dump line offset_format 'hex' or 'dec' show_offset 0 == no the offset display show_cumulative_offset 0 == no cumulative offset display show_zero_size_range 0 == no display of range with size 0 show_zero_size_range_warning 0 == no warnings about ranges with size 0 show_range_name 1 == display of the range name maximum_range_name_size truncate range name if longer display_range_size 1 == prepend the range size to the name show_hex_dump 1 == display of the hexadecimal dump show_dec_dump 1 == display of the decimal dump show_ascii_dump 1 == display of the ASCII dump h|help display this scripts help page
Nadim ibn hamouda el Khemir CPAN ID: NKH mailto: nkh@cpan.org
To install Data::HexDump::Range, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::HexDump::Range
CPAN shell
perl -MCPAN -e shell install Data::HexDump::Range
For more information on module installation, please visit the detailed CPAN module installation guide.