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: Hans Schou
Subject: Re: writing a combined list of all unique pairs
Date: Wed, 11 May 2016 23:10:06 +0200


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 <patrick.buchholz@itb.uni-stuttgart.de>:
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:torur.a@gmail.com] On Behalf Of Thor
Andreassen
Sent: Dienstag, 3. Mai 2016 15:10
To: parallel@gnu.org
Cc: Patrick Buchholz <patrick.buchholz@itb.uni-stuttgart.de>
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

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