swoop - getting basic stats of lines
Getting stats of lines(sum, max, min, range, avg)
$ cat some_file | swoop
specified the calc fields and the delimiter for splitting lines
$ cat some_file | swoop -f1,3 -d,
output
.--------------------------------------------. | | elem | sum | max | min | range | avg | +---+------+------+-----+-----+-------+------+ | 1 | 10 | 40.7 | 9 | 0 | 9 | 4.07 | | 3 | 10 | 55 | 10 | 1 | 9 | 5.5 | '---+------+------+-----+-----+-------+------'
select only these fields
use DELIM instead of TAB for field delimiter
put result to STDERR(default: STDOUT)
display this help and exit
output version information and exit
Dai Okabayashi <bayashi@cpan.org>
Statistics::Swoop
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Statistics::Swoop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Statistics::Swoop
CPAN shell
perl -MCPAN -e shell install Statistics::Swoop
For more information on module installation, please visit the detailed CPAN module installation guide.