GitXplorerGitXplorer
a

compute

public
2 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
273bff1d31e0ff1785629511d4a2b7dff5b3aeb0

compute is now GNU Datamash!

aagordon committed 10 years ago
Unverified
77cb2951c5398084cd6d62ba279b21f1b9f9d7d3

maint: improve comments in tests

aagordon committed 11 years ago
Unverified
c1af5d807cd3f433761fceddf1a517559072a936

maint: add 'texlive' package to Travis-CI

aagordon committed 11 years ago
Unverified
4ca1b6465bca8838bf828f67c4c4b51c5090ede3

maint: add 'texinfo' package to travis-CI

aagordon committed 11 years ago
Unverified
53c1669d062546f8938fb7d74990d698068944ad

doc: add texinfo documentation

aagordon committed 11 years ago
Unverified
55d7e1f5efb132434fbc0519e5dbf5ae92bbfb7c

maint: update copyright/license in files

aagordon committed 11 years ago

README

The README file for this repository.

Compute is now GNU Datamash !

compute (now GNU Datamash is a command-line program to perform textual,numerical,statistical operation on text files.

Examples

What's the sum and mean of the values in field 1 ?

$ seq 10 | datamash sum 1 mean 1
55 5.5

Given a file with three columns (Name, College Major, Score), what is the average, grouped by college major?

$ cat scores.txt
John       Life-Sciences    91
Dilan      Health-Medicine  84
Nathaniel  Arts             88
Antonio    Engineering      56
Kerris     Business         82
...

Sort input and group by column 2, calculate average on column 3:

$ datamash --sort --group 2  mean 3 < scores.txt
Arts             68.9474
Business         87.3636
Health-Medicine  90.6154
Social-Sciences  60.2667
Life-Sciences    55.3333
Engineering      66.5385

For more details

License

Copyright (C) 2014 Assaf Gordon (assafgordon@gmail.com)

GPLv3 or later