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
- bedops
Set and statistical operations on genomic data of arbitrary scale - sttr
CLI to perform various operations on string productivity cli tui encoding transform devutil string - stirling-pdf
1 Locally hosted web application that allows you to perform various operations on PDF files - repotools
Short names, big time savings. Repotools is a collection of commands with short but meaningful names, for the git… - miller
Like sed, awk, cut, join & sort for name-indexed data such as CSV json devops csv tabular-data devops-tools statistics… - Scilab
Software for numerical computation mathematics numerical computation - MLRift
Miller is like `awk`, `sed`, `cut`, `join`, and `sort` for name-indexed data such as CSV, TSV, and tabular JSON.… - topgrade
Upgrade all the things rust linux macos windows cli requirescmd package-manager package-management updatetool updater…
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents