Fsdb::F...comments(3)
π 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 πΈ
-hor--headerβ retain the header. thatβs the special little guy. π
This module also supports the standard fsdb options:
-dβ enable debugging output. π-ior--input_InputSource_ β read from _InputSource_, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. π-oor--output_OutputDestination_ β write to _OutputDestination_, typically a file name, or"-"for standard output, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. β¨--autorunor--noautorunβ by default, programs process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()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. π
π 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. π
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
- 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