DBCOLDEFINE(1)

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

πŸŽ€ DBCOLDEFINE(1) πŸŽ€

okay so bestie, you're looking at dbcoldefine from the User Contributed Perl Documentation section, and honestly? it's a little icon. let's get into it πŸ’…


✨ NAME ✨

dbcoldefine β€” the girl whose whole job is defining the columns of a plain text file so it can ~become~ an Fsdb file. glow-up complete, no cap πŸ’–


🌸 SYNOPSIS 🌸

dbcoldefine [-F x] [column...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: this program writes a new header before your data, using whatever column names you gave it. that's it, that's the whole plot. ✨

and listen β€” it does not validate the contents of your data. like, at all. it's not doing a vibe check on your numbers, bestie πŸ™ˆ. it is up to the user to verify that, other than the header, the input datastream is a correctly formatted Fsdb file. so basically the header's a slay, but the rest of the file? you gotta make sure that's actually correct yourself, fr fr.


πŸ’œ OPTIONS πŸ’œ

  • -F, --fs, or --fieldseparator s β€” specify the field separator. that's the thing between your fields, iykyk 🫢
  • --header H β€” give the columns and the field separator as a full Fsdb header (including #fsdb). ⚠️ this one can only be used alone β€” not with other specifications. like it's a solo main character, it does not share the spotlight πŸ’…

⭐ the standard fsdb options ⭐

this module also supports the standard fsdb options, and yes you get all of them:

  • -d β€” enable debugging output. turn it on when you need to see what's going on πŸ‘€
  • -i or --input InputSource β€” read from InputSource. typically that's a file name, or - for standard input, or (if you're in Perl) IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects. flexible queen 🌈
  • -o or --output OutputDestination β€” write to OutputDestination. typically a file name, or - for standard output, or (if you're in Perl) IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects πŸŽ€
  • --autorun or --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. we love a helper 🫢
  • --man β€” show the full manual. that's where you are right now bestie πŸ’–

πŸ”₯ SAMPLE USAGE πŸ”₯

πŸ“ Input:

102400      4937974.964736
102400      4585247.875904
102400      5098141.207123

πŸ“ Command:

cat DATA/http_bandwidth | dbcoldefine size bw

πŸ“ Output:

#fsdb size bw
102400      4937974.964736
102400      4585247.875904
102400      5098141.207123
# | dbcoldefine size bw

like LOOK at that header appearing out of nowhere. ate. πŸ‘‘


🌈 SEE ALSO 🌈

  • Fsdb.
  • dbfilestripcomments

go read those next, bestie, they're literally right there πŸ“šβœ¨


Copyright (C) 1991-2016 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 πŸŽ€


ngl the one thing to remember: the header gets written, the data does not get checked. you're the validator here, bestie. no pressure πŸ’€

and that's the whole page, bestie!! πŸ¦‹ this was DBCOLDEFINE(1) from perl v5.32.1, dated 2024-08-02 β€” mwah, go define some columns πŸ’–βœ¨πŸ’…

πŸ“¦ where this page comes from