Execute jobs parallel with one or more computers.
Parallel is a shell tool for executing jobs in parallel using one or more computers.
A job is can be a single command or a small script that has to be run for each of the lines in the input. The typical input is a list of files, a list of hosts, a list of users, a list of URLs, or a list of tables. A job can also be a command that reads from a pipe. GNU Parallel can then split the input and pipe it into commands in parallel. If you use xargs and tee today you will find GNU Parallel very easy to use as GNU Parallel is written to have the same options as xargs. If you write loops in shell, you will find GNU Parallel may be able to replace most of the loops and make them run faster by running several jobs in parallel. GNU Parallel can even replace nested loops.
GNU Parallel makes sure output from the commands is the same output as you would get had you run the commands sequentially. This makes it possible to use output from GNU Parallel as input for other programs.
For each line of input, GNU Parallel will execute command with the line as arguments. If no command is given, the line of input is executed. Several lines will be run in parallel. GNU Parallel can often be used as a substitute for xargs or cat bash.
The GNU Parallel distribution also includes an 'sql' script which aims to give a simple, unified interface for accessing databases through all the different databases' command line clients, and a 'niceload' script to slow down or suspend a program if system activity is above a given threshold.
Screencasts videos: https://commons.wikimedia.org/wiki/GNU_parallel
Selection from the FSF shop
If you have corrections to this entry or questions about it, please contact: mailto:email@example.com
released on 22 February 2020
OpenPGP signature URL: https://ftp.gnu.org/gnu/parallel/parallel-20200222.tar.bz2.sig
Accepts cryptocurrency donations.
git clone git://git.sv.gnu.org/parallel.git
24 September 2010
Leaders and contributors
Resources and communication
|VCS Repository Webview||https://git.savannah.gnu.org/cgit/parallel.git/|
|Required to use||Perl 5.8|
This entry (in part or in whole) was last reviewed on 23 February 2020.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.
The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.