Is there a way to create say 10 instances of a process (for example yes) with a single command?
$instantiate 10 yes
Is there a way to create say 10 instances of a process (for example yes) with a single command?
|
||||
|
Would something like the following be OK? This assumes bash (for brace expansion) and GNU parallel.
The |
|||||||||
|
@dhag certainly has a one-line answer, but the syntax makes my eyes hurt. :) Since you asked for a single command, and since the shell considers for-do-done a single (compound) command, I feel justified with this much more readable version:
Note that some shells automatically |
|||||
|