1PARSORT(1) parallel PARSORT(1)
2
3
4
6 parsort - Sort (big files) in parallel
7
9 parsort options for sort
10
12 parsort uses GNU sort to sort in parallel. It works just like sort but
13 faster on inputs with more than 1 M lines, if you have a multicore
14 machine.
15
16 Hopefully these ideas will make it into GNU sort in the future.
17
19 Sort files:
20
21 parsort *.txt > sorted.txt
22
23 Sort stdin (standard input) numerically:
24
25 cat numbers | parsort -n > sorted.txt
26
28 parsort is faster on a file than on stdin (standard input), because
29 different parts of a file can be read in parallel.
30
31 On a 48 core machine you should see a speedup of 3x over sort.
32
34 Copyright (C) 2020-2022 Ole Tange, http://ole.tange.dk and Free
35 Software Foundation, Inc.
36
38 Copyright (C) 2012 Free Software Foundation, Inc.
39
40 This program is free software; you can redistribute it and/or modify it
41 under the terms of the GNU General Public License as published by the
42 Free Software Foundation; either version 3 of the License, or at your
43 option any later version.
44
45 This program is distributed in the hope that it will be useful, but
46 WITHOUT ANY WARRANTY; without even the implied warranty of
47 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
48 General Public License for more details.
49
50 You should have received a copy of the GNU General Public License along
51 with this program. If not, see <http://www.gnu.org/licenses/>.
52
54 parsort uses sort, bash, and parallel.
55
57 sort
58
59
60
6120220322 2022-03-22 PARSORT(1)