PARSORT(1)
π PARSORT π (that's section 1 of the manual, bestie)
okay so quick vibe check: this is the manual page for parsort, living in the parallel corner of your man pages, and it is literally the glow-up your sorting situation has been waiting for. β¨
πΈ NAME πΈ
parsort β Sort (big files) in parallel π¦
β¨ SYNOPSIS β¨
parsort options for sort
likeβ¦ you just give it the options you'd give sort. that's the whole bit. π
π DESCRIPTION π
so parsort uses GNU sort to sort in parallel. it works just like sort but faster β specifically when your input has more than 1 M lines and you've got a multicore machine. π
hopefully these ideas will make it into GNU sort in the future. fr fr, manifesting that. πβ¨
π OPTIONS π
Same as sort. Except: π
--parallel=Nβ changes the number of sorts run concurrently toN. and lowkey here's the tea:Nwill be increased to the number of files ifparsortis given more thanNfiles. so it self-corrects, iconic behaviour honestly. π«Ά
π EXAMPLE π
Sort files:
parsort *.txt > sorted.txt
Sort stdin (standard input) numerically:
cat numbers | parsort -n > sorted.txt
not me piping numbers straight into it π so easy. π
π₯ PERFORMANCE π₯
parsort is faster on files than on stdin (standard input), because different parts of a file can be read in parallel. that's the secret sauce. π§
On a 48 core machine you should see a speedup of 3x over sort. three whole times. ate. ππ₯
π AUTHOR π
Copyright (C) 2020-2026 Ole Tange, http://ole.tange.dk and Free Software Foundation, Inc.
π LICENSE π
Copyright (C) 2012 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or at your option any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
okay bestie real talk: that warranty disclaimer is NOT a joke, there is genuinely NO WARRANTY, so don't come for anyone if it goes sideways. π read the GPL, it's giving very much important. π
π§ DEPENDENCIES π§
parsort uses sort, bash, and parallel. the holy trinity, no cap. π«Άβ¨
π SEE ALSO π
sort
and that's the whole page, bestie!! πΈπ¦ version <pink>20260922</pink>, dated <lavender>2026-09-22</lavender>, wrapped up with so much love. now go sort something enormous and feel like the main character you are. ππ
β¨
π¦ where this page comes from
- arch rolling: parallel 20260922-1 Β· GPL-3.0-only
- epel 10: parallel 20260922-2.el10_3 Β· GPL-3.0-or-later AND GFDL-1.3-or-later
- epel 9: parallel 20260922-2.el9 Β· GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 43: parallel 20260922-2.fc43 Β· GPL-3.0-or-later AND GFDL-1.3-or-later
- fedora 44: parallel 20260922-2.fc44 Β· GPL-3.0-or-later AND GFDL-1.3-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms