|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| build-aux/ | H | 23-Apr-2020 | - | 23,306 | 19,582 |
| contrib/bash-completion/ | H | 23-Apr-2020 | - | 114 | 70 |
| doc/ | H | 03-May-2022 | - | 2,299 | 1,831 |
| examples/ | H | 03-May-2022 | - | 241 | 176 |
| lib/ | H | 23-Apr-2020 | - | 53,100 | 34,080 |
| m4/ | H | 23-Apr-2020 | - | 22,056 | 20,786 |
| man/ | H | 23-Apr-2020 | - | 1,601 | 1,175 |
| po/ | H | 03-May-2022 | - | 16,458 | 13,643 |
| src/ | H | 23-Apr-2020 | - | 8,607 | 5,832 |
| tests/ | H | 23-Apr-2020 | - | 7,102 | 4,273 |
| .tarball-version | H A D | 23-Apr-2020 | 4 | 2 | 1 |
| ABOUT-NLS | H A D | 26-Aug-2019 | 91.6 KiB | 1,283 | 1,244 |
| AUTHORS | H A D | 02-Jan-2020 | 431 | 13 | 8 |
| COPYING | H A D | 02-Jan-2020 | 34.3 KiB | 675 | 553 |
| ChangeLog | H A D | 23-Apr-2020 | 75.6 KiB | 2,426 | 1,664 |
| GNUmakefile | H A D | 23-Apr-2020 | 4.5 KiB | 128 | 64 |
| INSTALL | H A D | 10-Jan-2017 | 15.4 KiB | 369 | 287 |
| Makefile.am | H A D | 23-Apr-2020 | 8.7 KiB | 332 | 220 |
| Makefile.in | H A D | 03-May-2022 | 285.9 KiB | 6,208 | 5,699 |
| NEWS | H A D | 23-Apr-2020 | 5.6 KiB | 209 | 135 |
| README | H A D | 02-Jan-2020 | 4.1 KiB | 137 | 93 |
| THANKS | H A D | 02-Jan-2020 | 481 | 15 | 9 |
| TODO | H A D | 15-Aug-2014 | 93 | 5 | 4 |
| aclocal.m4 | H A D | 23-Apr-2020 | 55.7 KiB | 1,583 | 1,449 |
| cfg.mk | H A D | 02-Jan-2020 | 6.8 KiB | 188 | 107 |
| config.in | H A D | 23-Apr-2020 | 45.3 KiB | 1,425 | 1,066 |
| configure | H A D | 23-Apr-2020 | 952 KiB | 38,439 | 30,151 |
| configure.ac | H A D | 02-Jan-2020 | 6.5 KiB | 213 | 182 |
| datamash.1 | H A D | 23-Apr-2020 | 17.3 KiB | 846 | 704 |
| decorate.1 | H A D | 23-Apr-2020 | 4.4 KiB | 192 | 182 |
| init.cfg | H A D | 02-Jan-2020 | 1.9 KiB | 65 | 49 |
| maint.mk | H A D | 23-Apr-2020 | 64.8 KiB | 1,757 | 1,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