TABDELIM_TO_DB(1)

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

🌸 NAME 🌸

okay so bestie, this is TABDELIM_TO_DB(1) from the User Contributed Perl Documentation girlies, and the command is tabdelim_to_db β€” convert tab-delimited data into fsdb. That's it, that's the whole main-character job. πŸ’–

✨ SYNOPSIS ✨

tabdelim_to_db <source.tabdelim >target.fsdb

The classic redirect setup: <source.tabdelim comes in, >target.fsdb goes out. Slay. πŸŽ€

πŸ’… DESCRIPTION πŸ’…

It converts a tab-delimited data stream to Fsdb format. No cap. ✨

The input is tab-delimited (not fsdb), okay? The first row is taken to be the names of the columns; tabs separate columns. Periodt. 🧚

The output is a fsdb file with a proper header and a tab field-separator. That's the vibe: tabs in, fsdb out. πŸ¦‹

This module also supports the standard fsdb options: iykyk.

  • -d β€” Enable debugging output. πŸ‘€
  • -i or --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 or --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 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. πŸ™ˆ
  • --man β€” Show full manual. πŸ“–

πŸ“ SAMPLE USAGE πŸ“

Input:

               name    email   test1
               Tommy Trojan    tt@usc.edu      80
               Joe Bruin       joeb@ucla.edu   85
               J. Random       jr@caltech.edu  90

Command:

           tabdelim_to_db

Output:

               #fsdb -Ft name email test1
               Tommy Trojan    tt@usc.edu      80
               Joe Bruin       joeb@ucla.edu   85
               J. Random       jr@caltech.edu  90
               #  | dbcoldefine name email test1

See? The header shows up, the rows stay iconic, and the dbcoldefine note is right there at the end. Obsessed. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

Fsdb. Go peep that, bestie. πŸ’œ

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. πŸ“œ

mwah πŸ’‹ β€” this page is from perl v5.32.1, dated 2024-08-02, and it's TABDELIM_TO_DB(1), periodt. 🌈

πŸ“¦ where this page comes from