ST(1)
π ST(1) β the st-console era π
okay bestie, this is ST(1), a page from the User Contributed Perl Documentation section of your manual, and it's about st-console. pull up a chair, grab a boba, we're doing stats β¨
πΈ NAME πΈ
st-console β simple statistics from the command line interface (CLI)
π¦ DESCRIPTION π¦
st-console is a command-line tool to calculate simple statistics from a file or standard input. that's it, that's the whole vibe. no cap. π
π USAGE π
st-console [options] [input_file]
β¨ OPTIONS β¨
π FUNCTIONS π
--N|n|countβ sample size, aka how many of them there are π--minβ minimum--maxβ maximum--mean|average|avg|mβ mean--stdev|sdβ standard deviation--stderr|sem|seβ standard error of mean--sum|sβ sum of elements of the sample--variance|varβ variance
β οΈ okay so heads up: the next ones require that the whole dataset is stored in memory, which can be problematic for huge datasets. like, lowkey a big deal if your file is enormous. π
--q1β first quartile--median|q2β second quartile, or median--q3β third quartile--percentile=fβpercentile=<0..100>--quartile=iβquartile=<1..4>
if no functions are selected, st-console will print the default output:
N min max sum mean stddev
you can also use the following predefined sets of functions:
--summaryβ five-number summary (min q1 median q3 max)--completeβ everything
π FORMATTING π
--format|fmt|f=<value>β default:"%g"
examples of valid formats:
%d signed integer, in decimal
%e floating-point number, in scientific notation
%f floating-point number, in fixed decimal notation
%g floating-point number, in %e or %f notation
--delimiter|d=<value>β default:"\t"--no-header|nhβ don't display header--transpose-output|toβ switch rows and columns
π§ INPUT VALIDATION π§
by default, st-console skips invalid input with a warning. slay, it's forgiving like that π«Ά
you can change this behavior with the following options:
--strictβ throws an error, interrupting process--quiet|qβ no warning
π AUTHOR π
Nelson Ferraz <nferraz@gmail.com>
π CONTRIBUTE π
send comments, suggestions and bug reports to:
https://github.com/nferraz/st/issues
or fork the code on github:
https://github.com/nferraz/st
π THANKS π
- imurray, who suggested a different algorithm for calculating variance.
- asgeirn, who suggested a input filter and helped to remove some warnings.
- gabeguz, who modified the script to make it more portable.
π COPYRIGHT π
Copyright (c) 2013 Nelson Ferraz.
this program is free software; you can redistribute it and/or modify it under the MIT License (see LICENSE).
and that's the whole page, bestie π this was ST(1) from the User Contributed Perl Documentation section, served up fresh by perl v5.36.0 on 2023-01-31. periodt. go run some stats, you're gonna eat π
β¨
π¦ where this page comes from
- debian bookworm: st-console 1.1.4-7 Β· MIT
- ubuntu noble: st-console 1.1.4-7 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms