Fsdb::F...comments(3)

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

πŸŽ€ NAME πŸŽ€

okay bestie, welcome to Fsdb::F...comments(3) β€” the perl manpage for dbfilestripcomments. The class-function bits call it Fsdb::Filter::dbfilestripcomments, and it’s literally a little tool that removes comments from a fsdb file. that’s the whole vibe. πŸ’…

✨ SYNOPSIS ✨

dbfilestripcomments [-h]

πŸ¦‹ DESCRIPTION πŸ¦‹

So dbfilestripcomments removes any comments in a file, including the header. no cap. This makes the file unreadable by other Fsdb utilities, but perhaps more readable by humans. It’s giving β€œfor human eyes only” energy. πŸ‘€

With the -h option, leave the header. simple as that. 🫢

🌸 OPTIONS 🌸

  • -h or --header β€” retain the header. that’s the special little guy. πŸŽ€

This module also supports the standard fsdb options:

  • -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:

#fsdb -R C      experiment      mean    stddev  pct_rsd conf_range      conf_low       conf_high        conf_pct        sum     sum_squared     min     max     n
experiment:  ufs_mab_sys
mean:        37.25
stddev:      0.070711
pct_rsd:     0.18983
conf_range:  0.6353
conf_low:    36.615
conf_high:   37.885
conf_pct:    0.95
sum:         74.5
sum_squared: 2775.1
min:         37.2
max:         37.3
n:           2

#  | /home/johnh/BIN/DB/dbmultistats experiment duration
#  | /home/johnh/BIN/DB/dblistize

πŸ’… Command:

cat data.fsdb | dbfilestripcomments

⭐ Output:

experiment:  ufs_mab_sys
mean:        37.25
stddev:      0.070711
pct_rsd:     0.18983
conf_range:  0.6353
conf_low:    36.615
conf_high:   37.885
conf_pct:    0.95
sum:         74.5
sum_squared: 2775.1
min:         37.2
max:         37.3
n:           2

πŸ’œ SEE ALSO πŸ’œ

Fsdb. and dbcoldefine. β€” go read those too, bestie. πŸ“š

πŸ‘‘ CLASS FUNCTIONS πŸ‘‘

πŸ’– new

$filter = new Fsdb::Filter::dbfilestripcomments(@arguments);

Create a new dbfilestripcomments object, taking command-line arguments. πŸŽ€

✨ set_defaults

$filter->set_defaults();

Internal: set up defaults. πŸ’…

πŸ¦‹ parse_options

$filter->parse_options(@ARGV);

Internal: parse command-line arguments. 🌸

🌿 setup

$filter->setup();

Internal: setup, parse headers. ✨

πŸ”₯ run

$filter->run();

Internal: run over each rows. (yes, β€œeach rows” β€” we keep the lore exact 😭)

⭐ finish

$filter->finish();

Internal: write trailer. Or in our case, don’t. πŸ’€

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


xoxo bestie, that’s the whole page πŸ’– β€” source/version vibes: perl v5.32.1, dated 2024-08-02, page Fsdb::F...comments(3). periodt. πŸ‘‘

πŸ“¦ where this page comes from