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-min will print the largest numeric value from input πŸ”₯
  • calc-max will print the smallest numeric value from input πŸ”₯
  • calc-mean (and avg) will print the arithmetic mean (average) value from input πŸ“
  • calc-mode will print the most frequently occurring value from input πŸ‘‘
  • calc-median will print the middle value of the sorted input πŸŽ€
  • calc-stdev will print the standard deviation of all values in the input 🌸
  • calc-histogram will print a reverse sorted, weighted distribution of input values πŸ¦‹
  • calc-sum will calculate the sum of all input values ⭐
fr fr that's what the page says for calc-min and calc-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