1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 03:13:23 +02:00
tldr/pages/common/st.2.md
Harshavardhan 5818120630
st: add pages (#17798)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-08-28 02:54:59 +03:00

626 B

st

Print basic descriptive statistics from input numbers. More information: https://github.com/nferraz/st.

  • Print count, min, max, sum, mean, and standard deviation for numbers in a file:

st {{path/to/file}}

  • Print statistics from standard input:

cat {{path/to/file}} | st

  • Print only the sum of the numbers:

st {{[-s|--sum]}} {{path/to/file}}

  • Print only the mean of the numbers:

st {{[-m|--mean]}} {{path/to/file}}

  • Print only the standard deviation:

st {{[-s|--sd]}} {{path/to/file}}

  • Transpose output (keys in one column, values in another):

st {{[-t|--transpose]}} {{path/to/file}}