parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Vote: Should $PARALLEL_PID {#} count from 0 or 1


From: Ole Tange
Subject: Re: Vote: Should $PARALLEL_PID {#} count from 0 or 1
Date: Thu, 14 Apr 2011 21:32:48 +0200

On Thu, Apr 14, 2011 at 8:34 PM, Hans Schou <chlor@schou.dk> wrote:
> On Thu, 14 Apr 2011, Jay Hacker wrote:
>
>  A usefull example:
>  cat /var/log/messages | cut -c1-$COLUMNS
>
>> * Integer division of N things numbered 0..N-1 by N maps consecutive
>> items the same group; 1..N does not
>> * Integer remainder of N things numbered 0..N-1 mod N gives nice,
>> ordered round-robin groups; 1..N does not
>> * Most clusters name their machines node000-nodeXXX
>> * Having to escape $(( {#} - 1 )) in Bash is not pretty
>
> Can you give an example where this is used with parallel?

I am undecided either way, but I lay heavy weight on actual useful
things you can do with the relevant starting number. So please help us
find good examples for either 0 or 1 as starting number.

/Ole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]