I never got an answer to this back in 2008 and thought I might have better luck now...
-- Michael > -----Original Message----- > From: Doran, Michael D > Sent: Thursday, February 21, 2008 11:03 AM > To: perl4lib@perl.org > Subject: marcdump hex switch > > I have MARC::Record 2.0 installed [1]. According to the Changes file > marcdump now has a "--hex" switch [2]: > > [ENHANCEMENTS] > - Added --hex switch to marcdump, which dumps the record in > hexadecimal. The offsets are in decimal so that you can match > them up to values in the leader. The offset is reset to 0 > when we're past the directory so that you can match up the data > with the offsets in the directory. > > However.... I'm *not* finding that my marcdump actually has that hex switch: > > /usr/local/scripts/xml/marc => marcdump --hex test.mrc > Unknown option: hex > Usage: marcdump [options] file(s) > > Options: > --[no]print Print a MicroLIF-style dump of each record > --lif Input files are MicroLIF, not USMARC > --field=spec Specify a field spec to include. There may be many. > Examples: > --field=245 --field=1XX > --[no]quiet Print status messages > --[no]stats Print a statistical summary by file at the end > --version Print version information > --help Print this summary > > I poked around the marcdump script and didn't find anything "hex": > > my $opt_print = 1; > my $opt_quiet = 0; > my $opt_stats = 1; > my @opt_field = (); > my $opt_help = 0; > my $opt_lif = 0; > > Any ideas/explanations? The hex dump functionality would sure be handy. > > -- Michael > > [1] /usr/local/scripts/xml/marc => marcdump -v > /usr/local/bin/marcdump, using MARC::Record v2.0 > > [2] CPAN > Revision history for Perl extension MARC::Record > http://search.cpan.org/src/MIKERY/MARC-Record-2.0.0/Changes > > # Michael Doran, Systems Librarian > # University of Texas at Arlington > # 817-272-5326 office > # 817-688-1926 mobile > # do...@uta.edu > # http://rocky.uta.edu/doran/