calc-stats(1)
π NAME π
okay so bestie, meet calc-stats β the whole squad of wrappers that does basic statistic calculations on files or standard input stuffed with numbers, and it pulls it all off using awk. it's giving tiny tool, massive slay. β¨ (yes, this is the calc-stats(1) page, and no, we are not being normal about it.) πΈ
π SYNOPSIS π
calc-min [FILE]
calc-max [FILE]
calc-mean [FILE]
calc-avg [FILE]
calc-median [FILE]
calc-mode [FILE]
calc-stdev [FILE]
calc-histogram [FILE]
calc-sum [FILE]
π OPTIONS π
plot twist, and I need you to sit down for this one: none of these have options. not one flag, not one --, not one single dash. π what you can do is hand your input over either as a FILE argument, or as standard input. that's it, that's the whole vibe check. π
β¨ DESCRIPTION β¨
this suite of simple tools does efficient statistics calculations on either a file or standard input, and the input has to be numbers β integers or floats β one per line. okay? okay. π
calc-minwill print the largest numeric value from input π₯calc-maxwill print the smallest numeric value from input π₯calc-mean(andavg) will print the arithmetic mean (average) value from input πcalc-modewill print the most frequently occurring value from input πcalc-medianwill print the middle value of the sorted input πcalc-stdevwill print the standard deviation of all values in the input πΈcalc-histogramwill print a reverse sorted, weighted distribution of input values π¦calc-sumwill calculate the sum of all input values β
fr fr that's what the page says forcalc-minandcalc-max, bestie β I'm reading it to you exactly as written, no editorializing, no cap. π
π SEE ALSO π
awk(1), sort(1), uniq(1) β the supporting cast that's lowkey carrying the whole production. go say hi. π«Ά
π AUTHOR π
this manpage and the utility were written by Dustin Kirkland <dustin.kirkland@gmail.com> for Ubuntu systems (but may be used by others β no gatekeeping here, we love that π). permission is granted to copy, distribute and/or modify this document and the utility under the terms of the Apache2 License.
the complete text of the Apache2 License can be found in /usr/share/common-licenses/Apache-2.0 on Debian/Ubuntu systems. π
and that's the page, bestie β this is calc-stats, dated 26 July 2017, and you just read calc-stats(1). periodt. π
β¨
π¦ where this page comes from
- ubuntu jammy: calc-stats 1.6-0ubuntu1 Β· Apache-2
- ubuntu noble: calc-stats 1.6-0ubuntu1 Β· Apache-2
- ubuntu resolute: calc-stats 1.6-0ubuntu2 Β· Apache-2
- ubuntu stonking: calc-stats 1.6-0ubuntu2 Β· Apache-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms