Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

marc21-print(1)

NAME

marc21-print — Print records in human readable format

SYNOPSIS

marc21 print [OPTIONS] [INPUT]…

DESCRIPTION

This command print records in human readable format.

OPTIONS

--format <format>
Choose between the standard output format (default) and the Mnemonic MARC Text File Format (mnemonic). If no explicit selection is made, the mnemonic format is used for file extensions .mrk and .mrk.gz; otherwise, the output is in the standard format. Possible values: default, mnemonic.
--translit <form>
Transliterate the output into the specified Unicode normal form. Possible values: nfd, nfkd, nfc, nfkc.

FILTER OPTIONS

-l, --limit <n>
Limit the result to first <n> records (a limit value 0 means no limit)
-s, --skip-invalid
Skip invalid records that can’t be decoded
--strsim-threshold <value>
The minimum score for string similarity comparisons. The value must be between 0 and 100.
--where
An filter expression for filtering records
--filter-normalization <form>
Transliterate the given filter or query expression into the specified Unicode normal form. Possible values: nfd, nfkd, nfc, nfkc. This option can also be specified by setting the environment variable MARC21_FILTER_NORMALIZATION.

COMMON OPTIONS

-p, --progress
If set, show a progress bar
--compression
Specify compression level (0..=9)

EXIT STATUS

  • 0 — Command succeeded.
  • 1 — Command failed.

EXAMPLES

The following command prints the record from the file ada.mrc to the console:

$ marc21 print tests/data/ada.mrc
LDR 03612nz  a2200589nc 4500
001 119232022
003 DE-101
005 20250720173911.0
008 950316n||azznnaabn           | aaa    |c
024/7# $a 119232022 $0 http://d-nb.info/gnd/119232022 $2 gnd
035 $a (DE-101)119232022
035 $a (DE-588)119232022
035 $z (DE-588)172642531
035 $z (DE-588a)172642531 $9 v:zg
...