AptLynx

Command-line tool

datamash

brew/datamash

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Tool to perform numerical, textual & statistical operations

At a glance

Type
Command-line tool
Install on
Windows, macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

Windows

winget install --id GNU.datamash -e
scoop install datamash

macOS

brew install datamash

Linux

brew install datamash

Get max, min, mean, and median of a single column of numbers

seq 3 | datamash max 1 min 1 mean 1 median 1

Get the mean of a single column of float numbers (floats must use "," and not ".")

echo -e '1.0\n2.5\n3.1\n4.3\n5.6\n5.7' | tr '.' ',' | datamash mean 1

Get the mean of a single column of numbers with a given decimal precision

echo -e '1\n2\n3\n4\n5\n5' | datamash -R number_of_decimals_wanted mean 1

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents