DBFILEVALIDATE(1)
π dbfilevalidate π
okay so bestie, welcome to the DBFILEVALIDATE(1) page from the User Contributed Perl Documentation β this is the manual for dbfilevalidate, and it's literally here to make your source input pass the βis this a well-formed Fsdb file?β vibe check. β¨
πΈ NAME πΈ
dbfilevalidate β insure the source input is a well-formed Fsdb file. Yes, βinsureβ is the original wording, bestie β we keep the details exact. π
β¨ SYNOPSIS β¨
dbfilevalidate [-vc]
π¦ DESCRIPTION π¦
Validates the input file to make sure it is a well-formed fsdb file. If the file is well-formed, it outputs the whole file and exits with a good exit code. Slay.
For invalid files? It exits with an error exit code and embedded error messages in the stream as comments with *** in them. π
Currently this program checks for rows with missing or extra columns. That's the whole check right now β no cap.
π OPTIONS π
-v,--errors-onlyβ output only broken lines, not the whole thing. Lowkey perfect when you just want the mess.-c,--correctβ correct errors, if possible. Pad out rows with the empty value; truncate rows with extra values. If errors can be corrected the program exits with a good return code. Iconic.-e E,--empty Eβ give value E as the value for empty (null) records. π
This module also supports the standard fsdb options, bestie:
-dβ enable debugging output.-i,--inputInputSource β read from InputSource, typically a file name, or-for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-o,--outputOutputDestination β write to OutputDestination, typically a file name, or-for standard output, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.--autorun,--noautorunβ by default, programs process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()method. The--(no)autorunoption controls that behavior within Perl.--helpβ show help. π«Ά--manβ show full manual. π
π SAMPLE USAGE π
π₯ Input:
#fsdb sid cid
1 10
2
1 12
2 12
π₯οΈ Command:
cat TEST/dbfilevalidate_ex.in | dbvalidate
π€ Output:
#fsdb sid cid
1 10
2
# *** line above is missing field cid.
1 12
2 12
# | dbfilevalidate
π¦ SEE ALSO π¦
Fsdb β that's the see-also, bestie. Go peek. β¨
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2008 by John Heidemann <johnh@isi.edu>
This program is distributed under terms of the GNU general public license, version 2. See the file COPYING with the distribution for details.
okay bestie, that's the whole page β source/version is perl v5.32.1, dated 2024-08-02, and the manual name is DBFILEVALIDATE(1). slay, go validate those files π
β¨
π¦ where this page comes from
- epel 9: perl-Fsdb 2:3.9-1.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms