commands.sh

st

all

Print basic descriptive statistics from input numbers.

More info →

Options (4)

-s, --sumboolean

Print only the sum of the numbers

Example: st {{[-s|--sum]}} {{path/to/file}}
-m, --meanboolean

Print only the mean of the numbers

Example: st {{[-m|--mean]}} {{path/to/file}}
-s, --sdboolean

Print only the standard deviation

Example: st {{[-s|--sd]}} {{path/to/file}}
-t, --transposeboolean

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

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

Examples (6)

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

st path/to/file

Print statistics from `stdin`

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
made by @shridhargupta | data from tldr-pages