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 (was: GNU Parallel 20150


From: Ole Tange
Subject: Re: writing a combined list of all unique pairs (was: GNU Parallel 20150607alpha released)
Date: Sun, 1 May 2016 19:17:05 +0200

On Fri, Apr 29, 2016 at 7:56 PM, Patrick Buchholz
<patrick.buchholz@itb.uni-stuttgart.de> wrote:
> Dear Mr Tange,

Use the mailinglist parallel@gnu.org next time.

> Is it possible to use GNU/Parallel for writing a combined list of all unique
> pairs from two input source files?

Not really sure what you mean by that. If I get it wrong, I trust you
will reply with some examples that show what you mean.

20160422 introduces :::+ and ::::+. They do an --xapply between the
input sources that are separated by :::+ and ::::+

Note how these differs:

  parallel echo {1} {2} {3} ::: {a..j} :::+ {A..J} ::: 1 2 3
  parallel echo {1} {2} {3} ::: {a..j} ::: {A..J} ::: 1 2 3

- o -

Or maybe you are asking about this:

  parallel '{= $::seen{"@arg"}++ >3 and $job->skip();$_="true" =};'
echo {1} {2} {3} ::: {a..j} b :::+ {A..J} B ::: 1 2 3

The set 'b B 1' .. 'b B 3'  is seen twice and ignored the second time.


/Ole



reply via email to

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