Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tange
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
tange
15y ago
You can emulate it with sem: find . -exec sem --id my_find -j3 sleep 4\; echo {} \; See more about sem: http://www.gnu.org/software/parallel/sem.html
2.
▲
by
tange
16y ago
Please read http://www.gnu.org/software/parallel/man.html#differences_be... before selecting dxargs.
3.
▲
by
tange
16y ago
Your use of xargs can lead to nasty surprises because of the separator problem http://en.wikipedia.org/wiki/Xargs#The_separator_problem GNU Parallel http://www.gnu.org/software/parallel/ does not have that problem. Watch the intro video
4.
▲
by
tange
16y ago
Like this (if you have GNU Parallel http://www.gnu.org/software/parallel/ installed) to run on multiple computers: find images | parallel -j+0 –trc {.}.out -S server1,server2,: “do_stuff {} > {.}.out” Watch the intro video for GNU Par
5.
▲
by
tange
16y ago
xargs cannot replace {} with a lot of arguments, so if mv did not have --target-directory, then xargs would have to do: find ... | xargs -0 -i {} mv {} ~/Pictures which would run one mv per file. GNU Parallel http://www.gnu.org/sof