NAME
    marc-filter - Tool to filter records in MARC dataset.

SYNOPSIS
     marc-filter [-e] [-h] [-i] [-n num] [-o format] [-r] [--version] marc_file search_item [sub_search_item] [value]

DESCRIPTION
    Tool to filter MARC records in big datasets. Could filter by control
    field or field/subfield or leader or material type. Tool could filter by
    number of output records.

    It supports MARC XML and USMARC files now.

ARGUMENTS
    *       "-e"

            Match field/subfield existence.

    *       "-h"

            Print help.

    *       "-i"

            Invert searching.

    *       "-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_file"

            MARC XML or USMARC file name.

            Input file could be compressed by IO::Uncompress::AnyUncompress
            module. Possibility is to uncompress gzip, zip, bzip2, zstd, xz,
            lzma, lzip, lzf or lzop.

    *       "search_item"

            Search item could be MARC control field or MARC field or
            'leader' string or material type string.

            Possible material type strings are:

            *   book

            *   computer_file

            *   continuing_resource

            *   map

            *   mixed_material

            *   music

            *   visual_material

    *       "sub_search_item"

            In the case of MARC field this could be a subfield. It's
            optional with "-e".

    *       "value"

            Value to filter. It's required without "-e".

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-2026 Michal Josef Špaček

    BSD 2-Clause License

ACKNOWLEDGEMENTS
    Development of this software has been made possible by institutional
    support for the long-term strategic development of the National Library
    of the Czech Republic as a research organization provided by the
    Ministry of Culture of the Czech Republic (DKRVO 2024–2028), Area 11:
    Linked Open Data.

VERSION
    0.11

