DBFILEVALIDATE(1)

πŸ“¦
version 3.9 Β· 3 versions
, in epel 9

πŸ’– 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, --input InputSource β€” read from InputSource, typically a file name, or - for standard input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
  • -o, --output OutputDestination β€” write to OutputDestination, typically a file name, or - for standard output, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
  • --autorun, --noautorun β€” by default, programs process automatically, but Fsdb::Filter objects in Perl do not run until you invoke the run() method. The --(no)autorun option 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. ✨

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