Fastmash summarizes and groups delimited text and quoted CSV from the command line. It also reshapes ordinary delimited text. It accepts the command language of GNU datamash, so most existing scripts can switch by changing one word.
$ printf 'site\treading\nwest\t2\neast\t4\nwest\t6\n' | fastmash -H -s -g site sum reading mean reading
Grouped summary
────────────────────────────────
site sum(reading) mean(reading)
east 4 4
west 8 4
✔ Completed
Why Fastmash
- Speed. About five times faster than GNU datamash on RefGene quartiles in published Linux benchmarks.
- Familiar commands. Over 70 operations and modes, with grouping, headers,
field selectors, percentiles,
crosstabandtranspose. - CSV and table tools. Read and write quoted CSV, name result columns, calculate weighted means, select top records, compare datasets and check table health.
- Repeatable results. Software arithmetic gives identical numerical results across supported machines for the same input, settings and Fastmash version.
Install
Fastmash runs on Linux, macOS 15 and later, and Windows 11. Native Windows installation uses PowerShell 7.4+.
Install prebuilt programs with your package manager. On Debian or Ubuntu, add the signed apt repository. On Fedora, RHEL and similar systems:
With Homebrew on macOS or Linux:
On Linux, macOS or inside WSL2, the quick installer downloads the latest release:
|
The installation guide also covers single packages, release archives, cargo-binstall and compiling with Cargo.
Quick start
# Sum CSV revenue by region and name the result column
|
# Weight prices by the number of units
|
# Keep the two records with the highest revenue
|
These examples use Bash. See the PowerShell quick start
for Windows file input and pipelines. Use --csv for quoted CSV and -H to select fields by header name.
The user guide covers all operations and options,
with complete examples for table validation
and before-and-after reports.
Compatibility
Fastmash implements the GNU datamash 1.9 command language. See the migration guide to switch existing scripts and the documented differences for compatibility details.
Documentation
- User guide for commands and examples
- Architecture for how Fastmash is built
- Changelog for changes between releases
Contributing
Found a bug or have a workload to share? Open an issue or read the contributing guide. Report vulnerabilities through the security policy.