lina <[email protected]> writes:

>Yes. the ultimate goal is:

>for i in {0..108}
>do
>cat A_$i.txt B_$i.txt C_$i.txt -o ABC_$i.txt  (output as ABC_$i.txt)
>done

>but here I wish to use only 8 processors at most, total is 16.
>the administrator of the cluster asked me not to use whole, cause
>someone else needs SMP server.

seq 0 108 | xargs -I@ -P8 cat [email protected] [email protected] [email protected] -o [email protected]

Most people use the character sequence {} where I have used @. I find @
to be simpler to type, so I use that instead.

I don't think you need -n1 in this case as it is somewhat implied by the
use of -I.


-- 
To UNSUBSCRIBE, email to [email protected] 
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to