NAME

marc-filter - Script to filter records in MARC dataset.

SYNOPSIS

marc-filter [-h] [-n num] [-o format] [-r] [--version] marc_xml_file field [subfield] value

DESCRIPTION

It supports MARC XML files now.

ARGUMENTS

  • -h

    Print help.

  • -n num

    Number of records to output,

    Default value is all records to output.

  • -o format

    Output MARC format.

    Possible formats are ascii, xml.

  • -r

    Use value as Perl regexp.

  • --version

    Print version of script.

  • marc_xml_file

    MARC XML file name.

  • field

    MARC field.

    Field number or 'leader' string.

  • subfield

    MARC subfield.

    It's optional in case of 'leader'.

  • value

    MARC field/subfield or leader value to filter.

REPOSITORY

https://github.com/michal-josef-spacek/App-MARC-Filter

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2022-2025 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.04