dbrowdiff - compute row-by-row differences of some column
dbrowdiff [-B|-I] column
For a given column, compute the differences between each row of the table. Differences are output to two new columns, absdiff and pctdiff.
absdiff
pctdiff
Differences are either relative to the previous column (incremental mode), or relative to the first row (baseline mode), the default.
Select baseline mode (the default), where differences are relative to the first row.
Select incremental mode, where differences are relative to the previous row.
Specify a printf(3)-style format for output statistics. Defaults to %.5g.
%.5g
This module also supports the standard fsdb options:
Enable debugging output.
Read from InputSource, typically a file name, or - for standard input, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
-
Write to OutputDestination, typically a file name, or - for standard output, or (if in Perl) a IO::Handle, Fsdb::IO or Fsdb::BoundedQueue objects.
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.
--(no)autorun
Show help.
Show full manual.
#fsdb event clock _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
cat DATA/kitrace.fsdb | dbrowdiff clock
#fsdb event clock absdiff pctdiff _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
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.
$filter = new Fsdb::Filter::dbrowdiff(@arguments);
Create a new dbrowdiff object, taking command-line arguments.
$filter->set_defaults();
Internal: set up defaults.
$filter->parse_options(@ARGV);
Internal: parse command-line arguments.
$filter->setup();
Internal: setup, parse headers.
$filter->run();
Internal: run over each rows.
Copyright (C) 1991-2018 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.
To install Fsdb, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Fsdb
CPAN shell
perl -MCPAN -e shell install Fsdb
For more information on module installation, please visit the detailed CPAN module installation guide.