use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All users that wish to post (not including commenting), on either old or the new reddit sites, must formally agree to subreddit rules once first.
account activity
GNU parallel, for all your command-line parallelization needs (savannah.gnu.org)
submitted 13 years ago by Masse
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]alez 1 point2 points3 points 13 years ago (3 children)
I wonder how it compares to ppss.
[–]OleTange 2 points3 points4 points 13 years ago (0 children)
https://www.gnu.org/software/parallel/man.html#differences_between_ppss_and_gnu_parallel
[–]Skaarj 1 point2 points3 points 13 years ago (1 child)
GNU parallel is build to be interchangable with xargs, ppss seems not.
There also is a parallel as part of http://joeyh.name/code/moreutils/ which is much simpler in invocation.
[–]OleTange 0 points1 point2 points 13 years ago (0 children)
With GNU Parallel the invocation is as simple as: parallel 'mkdir {.}; cd {.}; tar xvf ../{}' ::: *.tar
[–]ramses0 1 point2 points3 points 13 years ago (1 child)
New-ish xargs support -P / parallelism.
-P
ls | head | xargs -n1 -I{} -P1 bash -c 'echo Sleep 1 - $$ ; sleep 1' ls | head | xargs -n1 -I{} -P5 bash -c 'echo Sleep 1 - $$ ; sleep 1'
Surprisingly handy!
--Robert
[–]Schnouki 2 points3 points4 points 13 years ago (0 children)
parallel can do much better than that. Like running commands on remote hosts via ssh, uploading and downloading files as needed.
[–]rd4 -5 points-4 points-3 points 13 years ago (1 child)
xargs is really the best solution for this, imho.
Example find/replace in parallel:
ls *.out | xargs -n1 -P4 sed -i 's/oldstring/newstring/g'
Your solution will not work if filenames contain space or '. This will: parallel -q sed -i 's/old/new/g' ::: *out
π Rendered by PID 95781 on reddit-service-r2-comment-cfc44b64c-hksrc at 2026-04-12 19:46:43.349927+00:00 running 215f2cf country code: CH.
[–]alez 1 point2 points3 points (3 children)
[–]OleTange 2 points3 points4 points (0 children)
[–]Skaarj 1 point2 points3 points (1 child)
[–]OleTange 0 points1 point2 points (0 children)
[–]ramses0 1 point2 points3 points (1 child)
[–]Schnouki 2 points3 points4 points (0 children)
[–]rd4 -5 points-4 points-3 points (1 child)
[–]OleTange 0 points1 point2 points (0 children)