GNU Parallel: Difference between revisions
m David moved page GNU parallel to GNU Parallel without leaving a redirect |
No edit summary |
||
Line 1: | Line 1: | ||
GNU | GNU Parallel is useful for running multiple processes over an input list, similar to xargs.<br> | ||
==Usage== | ==Usage== |
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:;'