On Thu, Apr 14, 2011 at 8:34 PM, Hans Schou <[email protected]> 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