DBROWACCUMULATE(1)
π NAME π
okay bestie, welcome to the dbrowaccumulate page from the User Contributed Perl Documentation, aka DBROWACCUMULATE(1) if you're being formal π
. Short version: dbrowaccumulate β compute a running sum of a column. Periodt. β¨
β¨ SYNOPSIS β¨
dbrowaccumulate [-C increment_constant] [-I initial_value] [-c
increment_column] [-N new_column_name]
π DESCRIPTION π
okay so this icon computes a running sum over a column of data, or over a constant incremented per row β maybe you're doing it to generate a cumulative distribution, iykyk. π¦
What to accumulate is specified by -c or -C, no cap.
The new column is named by the -N argument, defaulting to accum. Slay.
π₯ OPTIONS π₯
-c,--columnCOLUMN β accumulate values from the given COLUMN. No default, bestie β you gotta pick one. π-C,--constantK β accumulate the given constant K for each row of input. No default. β¨-I,--initial-valueI β start accumulation at value I. Defaults to zero. π-N,--new-nameN β name the new column N. Defaults toaccum. π
This module also supports the standard fsdb options, bestie:
-dβ enable debugging output. π-i,--inputInputSource β read from InputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects. πΈ-o,--outputOutputDestination β 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)autorunoption controls that behavior within Perl. π--helpβ show help. π«Ά--manβ show full manual. π
π§ͺ SAMPLE USAGE π§ͺ
πΈ Input:
#fsdb diff
0.0
00.000938
00.001611
00.001736
00.002006
00.002049
# | /home/johnh/BIN/DB/dbrow
# | /home/johnh/BIN/DB/dbcol diff
# | /home/johnh/BIN/DB/dbsort diff
π Command:
cat DATA/kitrace.fsdb | dbrowaccumulate -c diff
π Output:
#fsdb diff accum
0.0 0
00.000938 .000938
00.001611 .002549
00.001736 .004285
00.002006 .006291
00.002049 .00834
# | /home/johnh/BIN/DB/dbrow
# | /home/johnh/BIN/DB/dbcol diff
# | /home/johnh/BIN/DB/dbsort diff
# | /home/johnh/BIN/DB/dbrowaccumulate diff
π SEE ALSO π
Fsdb, dbrowenumerate. Go check 'em out, bestie π
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2022 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.
that's the DBROWACCUMULATE(1) page, source/version perl v5.32.1, dated 2024-08-02 β byeee, mwah πβ¨
π¦ 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