1DBFILEVALIDATE(1)     User Contributed Perl Documentation    DBFILEVALIDATE(1)
2
3
4

NAME

6       dbfilevalidate - insure the source input is a well-formed Fsdb file
7

SYNOPSIS

9           dbfilevalidate [-vc]
10

DESCRIPTION

12       Validates the input file to make sure it is a well-formed fsdb file.
13       If the file is well-formed, it outputs the whole file and exits with a
14       good exit code.  For invalid files, it exits with an error exit code
15       and embedded error messages in the stream as comments with "***" in
16       them.
17
18       Currently this program checks for rows with missing or extra columns.
19

OPTIONS

21       -v or --errors-only
22           Output only broken lines, not the whole thing.
23
24       -c or --correct
25           Correct errors, if possible.  Pad out rows with the empty value;
26           truncate rows with extra values.  If errors can be corrected the
27           program exits with a good return code.
28
29       "-e E" or "--empty E"
30           give value E as the value for empty (null) records
31
32       This module also supports the standard fsdb options:
33
34       -d  Enable debugging output.
35
36       -i or --input InputSource
37           Read from InputSource, typically a file name, or "-" for standard
38           input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue
39           objects.
40
41       -o or --output OutputDestination
42           Write to OutputDestination, typically a file name, or "-" for
43           standard output, or (if in Perl) a IO::Handle, Fsdb::IO or
44           Fsdb::BoundedQueue objects.
45
46       --autorun or --noautorun
47           By default, programs process automatically, but Fsdb::Filter
48           objects in Perl do not run until you invoke the run() method.  The
49           "--(no)autorun" option controls that behavior within Perl.
50
51       --help
52           Show help.
53
54       --man
55           Show full manual.
56

SAMPLE USAGE

58   Input:
59           #fsdb sid cid
60           1 10
61           2
62           1 12
63           2 12
64
65   Command:
66           cat TEST/dbfilevalidate_ex.in | dbvalidate
67
68   Output:
69           #fsdb sid cid
70           1 10
71           2
72           # *** line above is missing field cid.
73           1 12
74           2 12
75           #  | dbfilevalidate
76

SEE ALSO

78       Fsdb.
79
81       Copyright (C) 1991-2008 by John Heidemann <johnh@isi.edu>
82
83       This program is distributed under terms of the GNU general public
84       license, version 2.  See the file COPYING with the distribution for
85       details.
86
87
88
89perl v5.32.0                      2020-11-16                 DBFILEVALIDATE(1)
Impressum