NAME

swoop - getting basic stats of lines

SYNOPSIS

Getting stats of lines(sum, max, min, range, avg)

$ cat some_file | swoop

EXAMPLES

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 |
'---+------+------+-----+-----+-------+------'

OPTIONS

-f, --fields=LIST

select only these fields

-d, --delimiter=DELIM

use DELIM instead of TAB for field delimiter

--stderr

put result to STDERR(default: STDOUT)

-h, --help

display this help and exit

-v, --version

output version information and exit

AUTHOR

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO

Statistics::Swoop

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.