See also https://hn.algolia.com/?q=gnu+parallel for other related discussions.
GNU Parallel, where have you been all my life?
11–20 of 277 posts
Re: GNU Parallel, where have you been all my life?
#12What about & and wait? Could it have been an adequate alternative?
No, that is more messy and can easily leave lingering processes. But it can be done in pure BASH: https://gist.github.com/mped-oticon/b11dafa937e694ce4fa6fbf2... GNU parallel supports expansion, which bash_parallel doesn't. However bash_parallel works with bash functions, which GNU parallel doesn't.
Re: GNU Parallel, where have you been all my life?
#13xargs is more useful because it's posix so you can always guarantee it to be there (whereas with GNU Parallel you probably have to reach for a package manager to install it first). The ergonomics are worse though, as usual.
Re: GNU Parallel, where have you been all my life?
#14 find ./ -type f -iname '*.jpg' -size +1M -print0 | parallel -0 mogrify -format webp -quality 80 {}Re: GNU Parallel, where have you been all my life?
#15GNU Parallel has been one of my go to tool to accomplish more on the terminal. Generate test data, transferring data from one node to another using rsync, run many-task, embarrassingly parallel jobs on HPC, pipelines with simple data dependencies but run over hundreds or files are some of the places where I use GNU Parallel. Many thanks to Ole Tange for developing the wonderful tool and helping the users on Stack Ove…
Re: GNU Parallel, where have you been all my life?
#16Re: GNU Parallel, where have you been all my life?
#17Re: GNU Parallel, where have you been all my life?
#18Re: GNU Parallel, where have you been all my life?
#19It might be a culture thing. In .NET code I see people running things in parallel a lot within code but maybe this is less so for linux tools.
Maybe functional programming style could lend to a parallel-first programming style, with heuristics to decide when it isn’t worth it.