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-describe(1)

NAME

marc21-describe — Creates a frequency table of all subfield codes

SYNOPSIS

marc21 describe [OPTIONS] [PATH]…

DESCRIPTION

The describe command creates a table that lists, for each field, how often a subfield code appears in the input. Since subfields appear only in the data fields, control fields are not included in the output. The columns ind1 and ind2 contain the values of the indicators.

OPTIONS

--tsv
Write output tab-separated (TSV)
-o, --output <path>
Write output to <path> instead of stdout. If the filename ends in .tsv or .tsv.gz, the output is automatically saved in TSV format. The output is gzip-compressed when the filename ends with .gz.

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
The minimum score for string similarity comparisons (0 <= score <= 100)
--where
An 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
-c, --compression
Specify compression level (0..=9)

EXIT STATUS

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

EXAMPLES

$ marc21 describe -s GND.mrc -o out.csv
10,220,897 records, 0 invalid | 472,874 records/s, elapsed: 00:00:21

$ head -10 out.csv
field,ind1,ind2,0,2,3,4,5,9,S,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,z
024,7, ,10220897,10863183,0,0,0,198362,0,10863183,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
034, , ,132557,135686,50,0,0,136105,0,0,0,0,136068,136068,136068,136068,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
035, , ,0,0,0,0,0,5495629,0,20441794,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6637796
040, , ,0,0,0,0,0,10220996,0,10220901,10220897,10220901,10220897,4524432,260659,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
042, , ,0,0,0,0,0,0,0,10220897,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
043, , ,0,0,0,0,0,15,0,0,0,9157636,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
065, , ,0,2617204,0,0,0,0,0,2617204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
075, , ,0,20051640,0,0,0,0,0,0,20080983,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
079, , ,0,0,0,0,0,0,0,10220897,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12469759,0,0,0,5126056,0,0,0,0