☰ Menu
CLI Open source 6 installs/mo

st for Mac

st

simple statistics from the command line interface (CLI)

st — overview

st ==

simple statistics from the command line interface (CLI)

Description

Imagine you have this sample file:

$ cat numbers.txt 1 2 3 4 5 6 7 8 9 10

How do you calculate the sum of the numbers?

The traditional way

If you ask around, you'll come up with suggestions like these:

$ awk '{s+=$1} END {print s}' numbers.txt 55

$ perl -lne '$x += $_; END { print $x; }' numbers.txt 55

$ sum=0; while read num ; do sum=$(($sum + $num)); done --quartile=

If no functions are selected, "st" 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= # default: "%g" --delimiter|d= # default: "t"

--no-header|nh # don't display header --transpose-output|to # switch rows and columns

Examples of valid formats ("--format" option):

%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

Input validation

By default, "st" skips invalid input with a warning.

You can change this behavior with the following options:

--strict # throws an error, interrupting process --quiet|q # no warning

Author

Nelson Ferraz >

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

Details

来自命令行的统计数据

How to install st

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2017-06-26; current version v1.1.4, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
v1.1.42017-06-26Stable————
v1.1.32017-06-26Stable————
v1.1.22015-04-01Stable————
v1.1.12013-10-10Stable————
v1.1.02013-09-23Stable————
v1.0.102013-09-23Stable————
v1.0.92013-09-23Stable————
v1.0.82013-09-11Stable————
v1.0.72013-09-11Stable————
q12013-09-11Stable————

Data from GitHub Releases; stable releases first, each group sorted newest first.

Prebuilt bottle platforms

Official Homebrew bottles cover:

  • all

⚠️ No prebuilt bottle for Intel Macs; Intel users need brew install --build-from-source to build from source.

Cannot be installed alongside: schemathesis。

To use both, first brew uninstall the conflicting package, or install it in an isolated environment.

Compared with similar apps

Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
stv1.1.4MITCLI6
httpstat1.3.0MITCLI13
collectd5.12.0MITCLI20
libstatgrabLIBSTATGRAB_0_92_1GPL-2.0-or-later AND LGPL-2.1-or-laterCLI1

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…