I don't think it can be done within parallel, you have add some script
around it.

Here is a bash version:
echo {A..F} | tr ' ' '\n' > list1
echo {1..4} | tr ' ' '\n' > list2
parallel 'while read; do echo {} $REPLY ; done < list2' < list1



2016-05-11 18:00 GMT+02:00 Patrick Buchholz <
[email protected]>:

> 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
>
> --
> Patrick
>
> -----Original Message-----
> From: Tórur Andreassen [mailto:[email protected]] On Behalf Of Thor
> Andreassen
> Sent: Dienstag, 3. Mai 2016 15:10
> To: [email protected]
> Cc: Patrick Buchholz <[email protected]>
> Subject: Re: writing a combined list of all unique pairs
>
> On Fri, Apr 29, 2016 at 7:56 PM, Patrick Buchholz
>
> [...]
>
> > Is it possible to use GNU/Parallel for writing a combined list of all
> > unique pairs from two input source files?
>
> Please provide some sample input and expected output.
>
> --
> Thor
>
>
>

Reply via email to