Name Date Size

..29-Nov-20194 KiB

.github/H02-Jan-20204 KiB

.gitignoreH A D13-Aug-20171.7 KiB

.gitmodulesH A D13-Aug-201775

AUTHORSH A D02-Jan-2020431

bootstrapH A D06-Aug-201932.4 KiB

bootstrap.confH A D02-Jan-20203.7 KiB

build-aux/H02-Jan-20204 KiB

cfg.mkH A D02-Jan-20206.8 KiB

configure.acH A D02-Jan-20206.5 KiB

contrib/bash-completion/H13-Aug-20174 KiB

COPYINGH A D13-Aug-201734.3 KiB

doc/H02-Jan-20204 KiB

examples/H02-Jan-20204 KiB

gnulib/H13-Aug-20174 KiB

HACKING.mdH A D25-Jan-20186 KiB

init.cfgH A D02-Jan-20201.9 KiB

lib/H02-Jan-20204 KiB

m4/H23-Dec-20184 KiB

Makefile.amH A D02-Jan-20207.5 KiB

man/H02-Jan-20204 KiB

NEWSH A D02-Jan-20205.1 KiB

po/H25-Jan-20184 KiB

READMEH A D02-Jan-20204.1 KiB

src/H02-Jan-20204 KiB

tests/H02-Jan-20204 KiB

THANKSH A D02-Jan-2020481

README

1GNU Datamash
2============
3
4GNU Datamash is a command-line program which performs basic
5numeric,textual and statistical operations on input textual data files.
6
7it is designed to be portable and reliable, and aid researchers
8to easily automate analysis pipelines, without writing code or even
9short scripts.
10
11Home page: https://www.gnu.org/software/datamash
12
13
14Usage
15=====
16
17See `datamash --help` for basic usage information.
18
19See `man datamash` for examples and operation details.
20
21For the instrucions manual, see `info datamash` or visit
22  https://www.gnu.org/software/datamash/manual/
23
24
25
26Examples
27========
28
29What's the sum and mean of the values in field 1 ?
30
31    $ seq 10 | datamash sum 1 mean 1
32    55 5.5
33
34Given a file with three columns (Name, College Major, Score),
35what is the average, grouped by college major?
36
37    $ cat scores.txt
38    John       Life-Sciences    91
39    Dilan      Health-Medicine  84
40    Nathaniel  Arts             88
41    Antonio    Engineering      56
42    Kerris     Business         82
43    ...
44
45
46    # Sort input and group by column 2, calculate average on column 3:
47
48    $ datamash --sort --group 2  mean 3 < scores.txt
49    Arts             68.9474
50    Business         87.3636
51    Health-Medicine  90.6154
52    Social-Sciences  60.2667
53    Life-Sciences    55.3333
54    Engineering      66.5385
55
56See more examples at https://www.gnu.org/software/datamash/examples/
57
58
59Download and Installation
60=========================
61
62Download the latest source code at https://www.gnu.org/software/datamash .
63
64General installation commands:
65
66    $ tar -xzf datamash-[VERSION].tar.gz
67    $ cd datamash-[VERSION]
68    $ ./configure
69    $ make
70    $ make check
71    $ sudo make install
72
73See Platform/OS-specific download instructions at
74  https://www.gnu.org/software/datamash/download/
75
76
77To build from latest git sources, see the HACKING.md file. This file is
78available when cloning from git, but is not distributed in the tar archive.
79To clone the git repository run
80    git clone git://git.savannah.gnu.org/datamash.git
81It is also available online at
82    https://git.savannah.gnu.org/cgit/datamash.git/tree/HACKING.md
83
84
85BASH Auto-completion
86====================
87
88The datamash package inclueds a bash auto-completion script.
89The installation location can be controlled using
90
91    ./configure --with-bash-completion-dir=[no|local|global|PATH]
92
93The options are:
94
95* local  - install under the package's $PREFIX path.
96           typically `/usr/local/share/datamash/bash-completion.d/` ,
97           but can be changed with `./configure --prefix`.
98           This is the default.
99
100* no     - do not install the bash completion script.
101
102* [PATH] - install into the PATH specified on the command line, e.g.
103           `./configure --with-bash-completion-dir=/for/bar/bash-completion.d/`
104
105* global - install into the system's global bash-completion directory,
106           as reported by `pkg-config`. This will be the result of:
107           `pkg-config --variable=completionsdir bash-completion`
108           Which is commonly `/usr/share/bash-completion/completions`
109           or `/etc/bash.d`.
110           If `pkg-config` is not found or if `pkg-config` does not have
111           the config (.pc) file for the bash-completion package,
112           defaults to 'local'.
113
114`local` is the default, and should be used particularly if installing under
115a non-default `--prefix` without root permissions.
116`global` should be used if you are installing to default location (/usr/local)
117and have root permissions (e.g. `sudo make install`).
118Using custom PATH or `global` should be used when packaging datamash for
119further distribution.
120
121Questions and Bug Reports
122=========================
123
124- Please send questions and bug reports to bug-datamash@gnu.org .
125- Searchable archive at https://lists.gnu.org/archive/html/bug-datamash .
126- Subscribe at https://lists.gnu.org/mailman/listinfo/bug-datamash .
127
128
129Copyright and License
130=====================
131Copyright (C) 2013-2020 Assaf Gordon <assafgordon@gmail.com>
132
133License: GPL Version 3 (or later).
134
135For any copyright year range specified as YYYY-ZZZZ in this package
136note that the range specifies every single year in that closed interval.
137