• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

build-aux/H23-Apr-2020-23,30619,582

contrib/bash-completion/H23-Apr-2020-11470

doc/H03-May-2022-2,2991,831

examples/H03-May-2022-241176

lib/H23-Apr-2020-53,10034,080

m4/H23-Apr-2020-22,05620,786

man/H23-Apr-2020-1,6011,175

po/H03-May-2022-16,45813,643

src/H23-Apr-2020-8,6075,832

tests/H23-Apr-2020-7,1024,273

.tarball-versionH A D23-Apr-20204 21

ABOUT-NLSH A D26-Aug-201991.6 KiB1,2831,244

AUTHORSH A D02-Jan-2020431 138

COPYINGH A D02-Jan-202034.3 KiB675553

ChangeLogH A D23-Apr-202075.6 KiB2,4261,664

GNUmakefileH A D23-Apr-20204.5 KiB12864

INSTALLH A D10-Jan-201715.4 KiB369287

Makefile.amH A D23-Apr-20208.7 KiB332220

Makefile.inH A D03-May-2022285.9 KiB6,2085,699

NEWSH A D23-Apr-20205.6 KiB209135

READMEH A D02-Jan-20204.1 KiB13793

THANKSH A D02-Jan-2020481 159

TODOH A D15-Aug-201493 54

aclocal.m4H A D23-Apr-202055.7 KiB1,5831,449

cfg.mkH A D02-Jan-20206.8 KiB188107

config.inH A D23-Apr-202045.3 KiB1,4251,066

configureH A D23-Apr-2020952 KiB38,43930,151

configure.acH A D02-Jan-20206.5 KiB213182

datamash.1H A D23-Apr-202017.3 KiB846704

decorate.1H A D23-Apr-20204.4 KiB192182

init.cfgH A D02-Jan-20201.9 KiB6549

maint.mkH A D23-Apr-202064.8 KiB1,7571,139

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