Part 1: GNU Parallel script processing and execution
Sign in to YouTube
Sign in to YouTube
Sign in to YouTube
Uploaded on Jun 21, 2010
GNU Parallel version 20100620 http://www.gnu.org/software/parallel/ is a shell tool for executing jobs in parallel locally or using remote machines. A job is typically 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.
If you use xargs 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. If you use ppss or pexec you will find GNU parallel will often make the command easier to read.
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.
-
Category
-
License
Creative Commons Attribution license (reuse allowed)
- Source videos Loading... View attributions
Loading...
Loading...
Loading...
Loading...
Loading...
-
0:43
Humvee Climbing Vertical Wall 1by blackhumveeFeatured
8,578,711
-
1:14:29
Richard Stallman at UofCby gordonmcdowell
79,275 views
-
1:01:25
Linux Command Line: Day 1: UNIX and Linux, an Introductionby Ershaad Ahamed Basheer
8,371 views
-
1:25:10
Revolution OSby Von Hash
16,234 views
-
33:19
GNU Compiler Collection dev history 1989-2012by paraipan13
13,729 views
-
73
videos
Play all
shell scriptingby chandsultana
-
46:39
CS 61A Lecture 30: Shell Programming Iby UCBerkeley
22,183 views
-
50:17
"Why Linux Sucks" - 2013by Bryan Lunduke
15,915 views
-
11:36
Richard Stallman - Facebook and Google+ Mistreat Their Usersby thenextweb
80,247 views
-
9:07
GNU Parallel script processing and executionby Ole Tange
2,134 views
-
1:27:11
[UNИX][GNU/Linux] Лекция 4. Права доступаby evgSyr
6,742 views
-
6:35
GNU Parallel 20110205 - The FOSDEM Releaseby Ole Tange
1,592 views
-
9:13
1. What is a Shell Scriptby mskchowdary
31,226 views
-
1:29:56
[UNИX][GNU/Linux] Лекция 3. FHS и процессы.by evgSyr
9,953 views
-
8:35
Learn Bash Scripts - Tutorialby metalx1000
100,947 views
-
1:25:05
Revolution OS ITAby Massimiliano Vigliotta
13,246 views
-
7:26
0814 xargs Passing argument lists to commandsby faqaful
358 views
-
1:26:40
[UNИX][GNU/Linux] Лекция 1. Что такое Linux? «Инварианты»by evgSyr
30,005 views
-
1:25:01
[UNИX][GNU/Linux] Лекция 8. Конфуцианство и кантианствоby evgSyr
3,106 views
-
1:25:10
Revolution OSby 3dkelvin's DOKU
186,861 views
-
6:14
Unix 101by rogriff
75,853 views
- Loading more suggestions...
Uploader Comments (Ole Tange)
thomasknauth 2 years ago
What shell are you using? Curious with respect to the file renaming syntax using {} and {.}.bz2
Sign in to YouTube
Sign in to YouTube
Ole Tange 2 years ago
the {}, {.}, {3}, and {3.} are all GNU Parallel specific. It is not dependent on the shell.
Sign in to YouTube
Sign in to YouTube
Top Comments
odoublewen 1 year ago
GNU parallel.... the best thing since sliced bread.
Sign in to YouTube
Sign in to YouTube
Video Responses
All Comments (33)
mike vandewege 4 months ago
This my new favorite bash function...thank you, thank you, thank you....thank you!
Sign in to YouTube
Sign in to YouTube
Soltan Alharbi 6 months ago
Thanks Ole for this great work.
Sign in to YouTube
Sign in to YouTube
hathuctube 7 months ago
Ole' !
Great tool!. Isn't this what the openCL folks tried to accomplish?
Thanks!
Sign in to YouTube
Sign in to YouTube
jeremiasz rebelka 7 months ago
this thing is amazing - I'm using it for video transcoding - it compiles no problem even on old systems it is very small yet extremely useful
Sign in to YouTube
Sign in to YouTube
paladeissan 1 year ago
click click click click
Sign in to YouTube
Sign in to YouTube
David Jenkins 1 year ago
This is lovely stuff, thanks for sharing... think ill try this on my data mining grep script.
Is your time script available for borrowing?
Sign in to YouTube
Sign in to YouTube
joaorstm 2 years ago
test -z checks if a string's length is zero.
In this case, the string being tested is probably user-configurable and can be empty.
This does not look like a mistake, and they also didn't mean test -d because mkdir does nothing if you try to create a directory that already exists.
Sign in to YouTube
Sign in to YouTube