parallel
[Top][All Lists]
Advanced

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

Re: writing a combined list of all unique pairs


From: Ole Tange
Subject: Re: writing a combined list of all unique pairs
Date: Thu, 12 May 2016 17:24:31 +0200

On Wed, May 11, 2016 at 6:00 PM, Patrick Buchholz
<patrick.buchholz@itb.uni-stuttgart.de> wrote:
> Hi,
>
> an example input would be a list:
> A
> B
> C
>
> And a list of unique combinations as output
> A B
> A C
> B C

You would have to repeat the list so there are 2 input sources:

parallel 'echo {= ($seen{$arg[1],$arg[2]}++ >2 or
$seen{$arg[2],$arg[1]}++ >2) and $job->skip() =}' ::: A B C ::: A B C


/Ole



reply via email to

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