From 790b38909763b433a994fdbdd277d1b01859728e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 23 Sep 2007 07:40:13 +0000 Subject: [PATCH] Document more yaz-marcdump options --- doc/yaz-marcdump-man.xml | 33 ++++++++++++++++++++++++++++++++- util/marcdump.c | 4 ++-- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/doc/yaz-marcdump-man.xml b/doc/yaz-marcdump-man.xml index a859971..5979a50 100644 --- a/doc/yaz-marcdump-man.xml +++ b/doc/yaz-marcdump-man.xml @@ -8,7 +8,7 @@ %idcommon; ]> - + YAZ @@ -34,6 +34,9 @@ + + + file @@ -74,6 +77,7 @@ Specifies input format. Must be one of marcxml, marc (ISO2709), + marcxchange (ISO25577), line (line mode MARC). @@ -83,6 +87,7 @@ Specifies output format. Must be one of marcxml, marc (ISO2709), + marcxchange (ISO25577), line (line mode MARC). @@ -125,6 +130,32 @@ + + -s prefix + + Writes a chunk of records to a separate file with prefix given, + i.e. splits a record batch into files with only at most + "chunk" ISO2709 record per file. By default chunk is 1 (one record + per file). See option -C. + + + + + -C chunksize + + Specifies chunk size; to be used conjunction with option + -s. + + + + + -p + + Makes yaz-marcdump prints record number and input file offset + of each record read. + + + diff --git a/util/marcdump.c b/util/marcdump.c index 4a5ac25..e65aed5 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.52 2007-04-17 20:26:18 adam Exp $ + * $Id: marcdump.c,v 1.53 2007-09-23 07:40:13 adam Exp $ */ #define _FILE_OFFSET_BITS 64 @@ -52,7 +52,7 @@ static void usage(const char *prog) { fprintf (stderr, "Usage: %s [-c cfile] [-f from] [-t to] " "[-i format] [-o format] " - "[-n] [-l pos=value] [-v] [-C chunk] [-s splitfname] file...\n", + "[-n] [-l pos=value] [-v] [-C chunk] [-s splitfname] [-p] file...\n", prog); } -- 1.7.10.4