DBROWDIFF(1)
β¨ NAME β¨
dbrowdiff β compute row-by-row differences of some column. This is the DBROWDIFF(1) page from User Contributed Perl Documentation, and itβs literally here to help you diff a column row by row π
π¦ SYNOPSIS π¦
dbrowdiff [-B|-I|-F] [-A AbsDiffColumnName] [-P PctDiffColumnName]
column
πΈ DESCRIPTION πΈ
okay so for a given column, dbrowdiff computes the differences between each row of the table. Those differences are output to two new columns, "absdiff" and "pctdiff" β¨
Differences are either relative to the previous column (incremental mode), or relative to the first row (baseline mode), the default. Alternatively, in future mode, differences are between the next row and the current row π«Ά
If column names are given, with -A or -P, then only columns with that name are produced. no cap.
π OPTIONS π
-Bor--baselineβ select baseline mode (the default), where differences are relative to the first row.-Ior--incrementalβ select incremental mode, where differences are relative to the previous row.-For--futureβ select future incremental mode, where differences are incremental between the next row and the current one.-A COLor--absdiff COLβ name the absolute difference output columnCOL, and donβt output percent difference unless-Pis given.-P COLor--pctdiff COLβ name the percent difference output columnCOL, and donβt output absolute difference unless-Pis given.-f FORMATor--format FORMATβ specify aprintf(3)-style format for output statistics. Defaults to"%.5g".-e EmptyValueor--emptyβ specify the value for the last row when in future mode.
This module also supports the standard fsdb options:
-dβ enable debugging output.-ior--input InputSourceβ read fromInputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-oor--output OutputDestinationβ write toOutputDestination, 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 event clock:d
_null_getpage+128 815812813.281756
_null_getpage+128 815812813.328709
_null_getpage+128 815812813.353830
_null_getpage+128 815812813.357169
_null_getpage+128 815812813.375844
_null_getpage+128 815812813.378358
# | /home/johnh/BIN/DB/dbrow
# | /home/johnh/BIN/DB/dbcol event clock
π¦ Command: π¦
cat DATA/kitrace.fsdb | dbrowdiff clock
π₯ Output: π₯
#fsdb event clock:d absdiff:d pctdiff:d
_null_getpage+128 815812813.281756 0 0
_null_getpage+128 815812813.328709 0.046953 5.7554e-09
_null_getpage+128 815812813.353830 0.072074 8.8346e-09
_null_getpage+128 815812813.357169 0.075413 9.2439e-09
_null_getpage+128 815812813.375844 0.094088 1.1533e-08
_null_getpage+128 815812813.378358 0.096602 1.1841e-08
# | /home/johnh/BIN/DB/dbrow
# | /home/johnh/BIN/DB/dbcol event clock
# | dbrowdiff clock
π SEE ALSO π
Fsdb.dbcolmovingstats.dbrowuniq.dbfilediff.
dbrowdiff, dbrowuniq, and dbfilediff are similar but different. dbrowdiff computes row-by-row differences for a column, dbrowuniq eliminates rows that have no differences, and dbfilediff compares fields of two files.
π AUTHOR and COPYRIGHT π
Copyright (C) 1991-2024 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.
okay thatβs the whole DBROWDIFF(1) page bestie β footer vibe check says perl v5.32.1 and 2024-08-02, and itβs giving manual-page main character energy ππ«Άβ¨
π¦ 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