GNU Parallel: Difference between revisions
No edit summary |
m David moved page GNU parallel to GNU Parallel without leaving a redirect |
(No difference)
|
Revision as of 17:07, 23 April 2024
GNU parallel is useful for running multiple processes over an input list, similar to xargs.
Usage
Replacement strings
Parallel includes a handful of default replacement strings:
--rpl '{} ' --rpl '{#} $_=$job->seq()' --rpl '{%} $_=$job->slot()' --rpl '{/} s:.*/::' --rpl '{//} $Global::use{"File::Basename"} ||= eval "use File::Basename; 1;"; $_ = dirname($_);' --rpl '{/.} s:.*/::; s:\.[^/.]+$::;' --rpl '{.} s:\.[^/.]+$::'
- Parent dirname
--rpl '{//} s:.*/(.*)/[^/]*:\1:;'